[Symbian Installation File] Implement GetAttributes().

This commit is contained in:
2023-10-07 18:01:30 +01:00
parent 9ac2dee484
commit f882ab4a7a
2 changed files with 13 additions and 3 deletions

View File

@@ -31,6 +31,7 @@
// ****************************************************************************/ // ****************************************************************************/
using System; using System;
using System.IO;
namespace Aaru.Archives; namespace Aaru.Archives;
@@ -91,5 +92,17 @@ public sealed partial class Symbian
return _compressed ? _files[entryNumber].originalLength : _files[entryNumber].length; return _compressed ? _files[entryNumber].originalLength : _files[entryNumber].length;
} }
/// <inheritdoc />
public FileAttributes GetAttributes(int entryNumber)
{
if(!_opened)
return (FileAttributes)(-1);
if(entryNumber < 0 || entryNumber >= _files.Count)
return (FileAttributes)(-1);
return FileAttributes.Normal;
}
#endregion #endregion
} }

View File

@@ -45,9 +45,6 @@ public sealed partial class Symbian
{ {
#region IArchive Members #region IArchive Members
/// <inheritdoc />
public FileAttributes GetAttributes(int entryNumber) => throw new NotImplementedException();
/// <inheritdoc /> /// <inheritdoc />
public List<string> GetXAttrs(int entryNumber) => throw new NotImplementedException(); public List<string> GetXAttrs(int entryNumber) => throw new NotImplementedException();