PartitionFileSystemCore: Fix opening directories

This commit is contained in:
Alex Barney 2022-04-01 18:29:39 -07:00
parent 0a96e8d623
commit 9cad4b287b

View file

@ -57,7 +57,7 @@ public class PartitionFileSystemCore<T> : IFileSystem where T : unmanaged, IPart
ReadOnlySpan<byte> rootPath = new[] { (byte)'/' };
if (path == rootPath)
if (path != rootPath)
return ResultFs.PathNotFound.Log();
outDirectory.Reset(new PartitionDirectory(this, mode));