mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Optimize reading FAT directories with several thousand files
This commit is contained in:
@@ -221,9 +221,12 @@ namespace DiscImageChef.Filesystems.FAT
|
||||
|
||||
string parentPath = string.Join("/", pieces, 0, pieces.Length - 1);
|
||||
|
||||
Errno err = ReadDir(parentPath, out _);
|
||||
if(!directoryCache.TryGetValue(parentPath, out _))
|
||||
{
|
||||
Errno err = ReadDir(parentPath, out _);
|
||||
|
||||
if(err != Errno.NoError) return err;
|
||||
if(err != Errno.NoError) return err;
|
||||
}
|
||||
|
||||
Dictionary<string, CompleteDirectoryEntry> parent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user