Files
Aaru/Aaru.Archives/Arc/Xattrs.cs

27 lines
578 B
C#
Raw Normal View History

2025-09-01 06:18:21 +01:00
using System.Collections.Generic;
using Aaru.CommonTypes.Enums;
namespace Aaru.Archives;
public sealed partial class Arc
{
#region IArchive Members
/// <inheritdoc />
public ErrorNumber ListXAttr(int entryNumber, out List<string> xattrs)
{
xattrs = null;
if(!Opened) return ErrorNumber.NotOpened;
if(entryNumber < 0 || entryNumber >= _entries.Count) return ErrorNumber.OutOfRange;
xattrs = [];
if(_entries[entryNumber].Comment is not null) xattrs.Add("comment");
return ErrorNumber.NoError;
}
#endregion
}