mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Handle directory entries that contain a forward slash in the filename in FAT filesystem.
This commit is contained in:
@@ -292,6 +292,9 @@ namespace Aaru.Filesystems
|
||||
completeEntry.HumanName = filename;
|
||||
}
|
||||
|
||||
// Atari ST allows slash AND colon so cannot simply substitute one for the other like in Mac filesystems
|
||||
filename = filename.Replace('/', '\u2215');
|
||||
|
||||
// Using array accessor ensures that repeated entries just get substituted.
|
||||
// Repeated entries are not allowed but some bad implementations (e.g. FAT32.IFS)allow to create them
|
||||
// when using spaces
|
||||
|
||||
@@ -666,6 +666,9 @@ namespace Aaru.Filesystems
|
||||
continue;
|
||||
}
|
||||
|
||||
// Atari ST allows slash AND colon so cannot simply substitute one for the other like in Mac filesystems
|
||||
filename = filename.Replace('/', '\u2215');
|
||||
|
||||
completeEntry.Shortname = filename;
|
||||
|
||||
if(_namespace == Namespace.Human)
|
||||
|
||||
Reference in New Issue
Block a user