Skip to content

Commit 284fa24

Browse files
authored
Merge pull request #800 from Erior/feature/Expose-file-attributes-for-rar-entries
Expose file attributes for rar
2 parents 0a20b91 + e0a5ed4 commit 284fa24

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/SharpCompress/Common/Rar/RarEntry.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ public abstract class RarEntry : Entry
5555
public override bool IsEncrypted => FileHeader.IsEncrypted;
5656

5757
/// <summary>
58-
/// Entry is password protected and encrypted and cannot be extracted.
58+
/// Entry Windows file attributes
59+
/// </summary>
60+
public override int? Attrib => (int)FileHeader.FileAttributes;
61+
62+
/// <summary>
63+
/// Entry is a directory
5964
/// </summary>
6065
public override bool IsDirectory => FileHeader.IsDirectory;
6166

0 commit comments

Comments
 (0)