Skip to content

Commit

Permalink
Expose file attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Erior committed Jan 5, 2024
1 parent 741712f commit e0a5ed4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/SharpCompress/Common/Rar/RarEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ public abstract class RarEntry : Entry
public override bool IsEncrypted => FileHeader.IsEncrypted;

/// <summary>
/// Entry is password protected and encrypted and cannot be extracted.
/// Entry Windows file attributes
/// </summary>
public override int? Attrib => (int)FileHeader.FileAttributes;

/// <summary>
/// Entry is a directory
/// </summary>
public override bool IsDirectory => FileHeader.IsDirectory;

Expand Down

0 comments on commit e0a5ed4

Please sign in to comment.