mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix getting ISO9660 directory entry when we are using a namespace that excludes file version.
This commit is contained in:
@@ -155,7 +155,18 @@ namespace DiscImageChef.Filesystems.ISO9660
|
|||||||
KeyValuePair<string, DecodedDirectoryEntry> dirent =
|
KeyValuePair<string, DecodedDirectoryEntry> dirent =
|
||||||
parent.FirstOrDefault(t => t.Key.ToLower(CultureInfo.CurrentUICulture) == pieces[pieces.Length - 1]);
|
parent.FirstOrDefault(t => t.Key.ToLower(CultureInfo.CurrentUICulture) == pieces[pieces.Length - 1]);
|
||||||
|
|
||||||
if(string.IsNullOrEmpty(dirent.Key)) return Errno.NoSuchFile;
|
if(string.IsNullOrEmpty(dirent.Key))
|
||||||
|
{
|
||||||
|
// TODO: RRIP
|
||||||
|
if(!joliet && !pieces[pieces.Length - 1].EndsWith(";1", StringComparison.Ordinal))
|
||||||
|
{
|
||||||
|
dirent = parent.FirstOrDefault(t => t.Key.ToLower(CultureInfo.CurrentUICulture) ==
|
||||||
|
pieces[pieces.Length - 1] + ";1");
|
||||||
|
|
||||||
|
if(string.IsNullOrEmpty(dirent.Key)) return Errno.NoSuchFile;
|
||||||
|
}
|
||||||
|
else return Errno.NoSuchFile;
|
||||||
|
}
|
||||||
|
|
||||||
entry = dirent.Value;
|
entry = dirent.Value;
|
||||||
return Errno.NoError;
|
return Errno.NoError;
|
||||||
|
|||||||
Reference in New Issue
Block a user