mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Make some values in FileEntryInfo nullable to indicate the underlying filesystem cannot represent them.
This commit is contained in:
@@ -128,13 +128,9 @@ namespace DiscImageChef.Filesystems.FATX
|
||||
Attributes = FileAttributes.Directory | FileAttributes.System | FileAttributes.Hidden,
|
||||
Blocks = GetClusters(superblock.rootDirectoryCluster).Length,
|
||||
BlockSize = bytesPerCluster,
|
||||
DeviceNo = 0,
|
||||
GID = 0,
|
||||
Length = GetClusters(superblock.rootDirectoryCluster).Length * bytesPerCluster,
|
||||
Inode = superblock.rootDirectoryCluster,
|
||||
Links = 1,
|
||||
Mode = 0x16D,
|
||||
UID = 0
|
||||
Links = 1
|
||||
};
|
||||
|
||||
return Errno.NoError;
|
||||
@@ -148,13 +144,9 @@ namespace DiscImageChef.Filesystems.FATX
|
||||
Attributes = new FileAttributes(),
|
||||
Blocks = entry.length / bytesPerCluster,
|
||||
BlockSize = bytesPerCluster,
|
||||
DeviceNo = 0,
|
||||
GID = 0,
|
||||
Length = entry.length,
|
||||
Inode = entry.firstCluster,
|
||||
Links = 1,
|
||||
Mode = (uint)(entry.attributes.HasFlag(Attributes.Directory) ? 0x16D : 0x124),
|
||||
UID = 0,
|
||||
CreationTime =
|
||||
littleEndian
|
||||
? DateHandlers.DosToDateTime(entry.creationDate, entry.creationTime).AddYears(20)
|
||||
|
||||
Reference in New Issue
Block a user