mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Fix enumerating directories with a marker in winfsp.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user