Implement GetAttribute in Xbox FAT plugin.

This commit is contained in:
2019-04-10 20:34:32 +01:00
parent 429a40de12
commit 324d48a619

View File

@@ -52,7 +52,13 @@ namespace DiscImageChef.Filesystems.FATX
attributes = new FileAttributes();
if(!mounted) return Errno.AccessDenied;
throw new NotImplementedException();
Errno err = Stat(path, out FileEntryInfo stat);
if(err != Errno.NoError) return err;
attributes = stat.Attributes;
return Errno.NoError;
}
public Errno Read(string path, long offset, long size, ref byte[] buf)