Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Sep 19, 2024
1 parent fca27e7 commit b25f9db
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/dub/internal/io/mockfs.d
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,8 @@ public class FSEntry
/// Returns: The `path` of this FSEntry
public NativePath path () const scope
{
version (Windows) enum RootPath = "T:\\";
else enum RootPath = "/";

if (this.parent is null)
return NativePath(RootPath);
return this.name.length ? NativePath(this.name) : NativePath("/");
assert(!NativePath(this.name).absolute, this.name);
auto thisPath = this.parent.path ~ this.name;
thisPath.endsWithSlash = (this.attributes.type == Type.Directory);
Expand Down

0 comments on commit b25f9db

Please sign in to comment.