[ZOO] Add skeleton for GetAttributes until I get test files to decode them.

This commit is contained in:
2025-08-23 07:06:42 +01:00
parent 28e2adff49
commit 4602a79cbd
2 changed files with 13 additions and 4 deletions

View File

@@ -97,5 +97,18 @@ public sealed partial class Zoo
return ErrorNumber.NoError;
}
/// <inheritdoc />
public ErrorNumber GetAttributes(int entryNumber, out FileAttributes attributes)
{
// TODO: Decode them
attributes = FileAttributes.None;
if(!Opened) return ErrorNumber.NotOpened;
if(entryNumber < 0 || entryNumber >= _files.Count) return ErrorNumber.OutOfRange;
return ErrorNumber.NoError;
}
#endregion
}

View File

@@ -31,7 +31,6 @@ using System.Collections.Generic;
using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Interfaces;
using Aaru.CommonTypes.Structs;
using FileAttributes = System.IO.FileAttributes;
namespace Aaru.Archives;
@@ -43,9 +42,6 @@ public sealed partial class Zoo
public ErrorNumber GetEntryNumber(string fileName, bool caseInsensitiveMatch, out int entryNumber) =>
throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber GetAttributes(int entryNumber, out FileAttributes attributes) =>
throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber ListXAttr(int entryNumber, out List<string> xattrs) => throw new NotImplementedException();