From f882ab4a7ae4536b60429feabdbe1ff9c5f1352f Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 7 Oct 2023 18:01:30 +0100 Subject: [PATCH] [Symbian Installation File] Implement `GetAttributes()`. --- Aaru.Archives/Symbian/Files.cs | 13 +++++++++++++ Aaru.Archives/Symbian/Unsupported.cs | 3 --- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Aaru.Archives/Symbian/Files.cs b/Aaru.Archives/Symbian/Files.cs index 05808c56f..d03c4610b 100644 --- a/Aaru.Archives/Symbian/Files.cs +++ b/Aaru.Archives/Symbian/Files.cs @@ -31,6 +31,7 @@ // ****************************************************************************/ using System; +using System.IO; namespace Aaru.Archives; @@ -91,5 +92,17 @@ public sealed partial class Symbian return _compressed ? _files[entryNumber].originalLength : _files[entryNumber].length; } + /// + public FileAttributes GetAttributes(int entryNumber) + { + if(!_opened) + return (FileAttributes)(-1); + + if(entryNumber < 0 || entryNumber >= _files.Count) + return (FileAttributes)(-1); + + return FileAttributes.Normal; + } + #endregion } \ No newline at end of file diff --git a/Aaru.Archives/Symbian/Unsupported.cs b/Aaru.Archives/Symbian/Unsupported.cs index fe851f45f..1ed439a07 100644 --- a/Aaru.Archives/Symbian/Unsupported.cs +++ b/Aaru.Archives/Symbian/Unsupported.cs @@ -45,9 +45,6 @@ public sealed partial class Symbian { #region IArchive Members - /// - public FileAttributes GetAttributes(int entryNumber) => throw new NotImplementedException(); - /// public List GetXAttrs(int entryNumber) => throw new NotImplementedException();