FileInfoRarFilePart.cs 697 B

12345678910111213141516171819202122232425262728
  1. 
  2. #if !NO_FILE
  3. using System.IO;
  4. using SharpCompress.Common.Rar.Headers;
  5. namespace SharpCompress.Archives.Rar
  6. {
  7. internal class FileInfoRarFilePart : SeekableFilePart
  8. {
  9. internal FileInfoRarFilePart(FileInfoRarArchiveVolume volume, string password, MarkHeader mh, FileHeader fh, FileInfo fi)
  10. : base(mh, fh, volume.Stream, password)
  11. {
  12. FileInfo = fi;
  13. }
  14. internal FileInfo FileInfo { get; }
  15. internal override string FilePartName
  16. {
  17. get
  18. {
  19. return "Rar File: " + FileInfo.FullName
  20. + " File Entry: " + FileHeader.FileName;
  21. }
  22. }
  23. }
  24. }
  25. #endif