Skip to content

Commit

Permalink
Not so elegant perhaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Erior committed Feb 14, 2021
1 parent 2dd17e3 commit 93c1ff3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/SharpCompress/Common/SevenZip/SevenZipEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal SevenZipEntry(SevenZipFilePart filePart)

public override DateTime? ArchivedTime => null;

public override bool IsEncrypted => false;
public override bool IsEncrypted => FilePart.IsEncrypted;

public override bool IsDirectory => FilePart.Header.IsDir;

Expand Down
2 changes: 2 additions & 0 deletions src/SharpCompress/Common/SevenZip/SevenZipFilePart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,7 @@ internal CompressionType GetCompression()
throw new NotImplementedException();
}
}

internal bool IsEncrypted => Folder!._coders.FindIndex(c => c._methodId._id == CMethodId.K_AES_ID) != -1;
}
}

0 comments on commit 93c1ff3

Please sign in to comment.