mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Implement ISO9660 getattributes.
This commit is contained in:
@@ -10,7 +10,19 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
{
|
||||
public Errno MapBlock(string path, long fileBlock, out long deviceBlock) => throw new NotImplementedException();
|
||||
|
||||
public Errno GetAttributes(string path, out FileAttributes attributes) => throw new NotImplementedException();
|
||||
public Errno GetAttributes(string path, out FileAttributes attributes)
|
||||
{
|
||||
attributes = new FileAttributes();
|
||||
if(!mounted) return Errno.AccessDenied;
|
||||
|
||||
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) => throw new NotImplementedException();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user