mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Symbian Installation File] Implement GetAttributes().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public FileAttributes GetAttributes(int entryNumber)
|
||||
{
|
||||
if(!_opened)
|
||||
return (FileAttributes)(-1);
|
||||
|
||||
if(entryNumber < 0 || entryNumber >= _files.Count)
|
||||
return (FileAttributes)(-1);
|
||||
|
||||
return FileAttributes.Normal;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -45,9 +45,6 @@ public sealed partial class Symbian
|
||||
{
|
||||
#region IArchive Members
|
||||
|
||||
/// <inheritdoc />
|
||||
public FileAttributes GetAttributes(int entryNumber) => throw new NotImplementedException();
|
||||
|
||||
/// <inheritdoc />
|
||||
public List<string> GetXAttrs(int entryNumber) => throw new NotImplementedException();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user