mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix path when building read only filesystem test.
This commit is contained in:
@@ -234,6 +234,9 @@ namespace Aaru.Tests.Filesystems
|
|||||||
|
|
||||||
Dictionary<string, FileData> BuildDirectory(IReadOnlyFilesystem fs, string path)
|
Dictionary<string, FileData> BuildDirectory(IReadOnlyFilesystem fs, string path)
|
||||||
{
|
{
|
||||||
|
if(path == "/")
|
||||||
|
path = "";
|
||||||
|
|
||||||
Dictionary<string, FileData> children = new Dictionary<string, FileData>();
|
Dictionary<string, FileData> children = new Dictionary<string, FileData>();
|
||||||
fs.ReadDir(path, out List<string> contents);
|
fs.ReadDir(path, out List<string> contents);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user