From e0a5ed4bdbf4cfe98c740ec2241d4d9482fe18d1 Mon Sep 17 00:00:00 2001 From: Lars Vahlenberg Date: Fri, 5 Jan 2024 09:50:58 +0100 Subject: [PATCH] Expose file attributes --- src/SharpCompress/Common/Rar/RarEntry.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SharpCompress/Common/Rar/RarEntry.cs b/src/SharpCompress/Common/Rar/RarEntry.cs index 655264ec..639c9d94 100644 --- a/src/SharpCompress/Common/Rar/RarEntry.cs +++ b/src/SharpCompress/Common/Rar/RarEntry.cs @@ -55,7 +55,12 @@ public abstract class RarEntry : Entry public override bool IsEncrypted => FileHeader.IsEncrypted; /// - /// Entry is password protected and encrypted and cannot be extracted. + /// Entry Windows file attributes + /// + public override int? Attrib => (int)FileHeader.FileAttributes; + + /// + /// Entry is a directory /// public override bool IsDirectory => FileHeader.IsDirectory;