mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-13 20:03:19 +01:00
test: the in-memory disk has the root of an absolute Linux path
This commit is contained in:
@@ -275,6 +275,9 @@ public sealed class InMemoryFileSystem : IFileSystem
|
|||||||
return;
|
return;
|
||||||
slash = key.LastIndexOf('/');
|
slash = key.LastIndexOf('/');
|
||||||
}
|
}
|
||||||
|
// An absolute Unix path's parent is the root, "/", which normalises to "".
|
||||||
|
if (slash == 0)
|
||||||
|
_directories.Add("");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string Normalize(string path) =>
|
private static string Normalize(string path) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user