Fix enumerating directories with a marker in winfsp.

This commit is contained in:
2020-09-03 21:10:56 +01:00
parent 2be39492e4
commit 66c174ee95

View File

@@ -414,6 +414,14 @@ namespace RomRepoMgr.Core.Filesystem
}));
}
if(marker != null)
{
int idx = node.Children.FindIndex(f => f.FileName == marker);
if(idx >= 0)
node.Children.RemoveRange(0, idx + 1);
}
context = enumerator = node.Children.GetEnumerator();
}