Fix clusters calculation in Xbox FAT's stat.

This commit is contained in:
2019-04-14 11:31:48 +01:00
parent 41f066dc7d
commit 55892f057a

View File

@@ -147,6 +147,8 @@ namespace DiscImageChef.Filesystems.FATX
.AddYears(20)
};
if(entry.length % bytesPerCluster > 0) stat.Blocks++;
if(entry.attributes.HasFlag(Attributes.Directory))
{
stat.Attributes |= FileAttributes.Directory;