CFileItem.cs 944 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. namespace SharpCompress.Common.SevenZip
  3. {
  4. internal class CFileItem
  5. {
  6. public long Size { get; internal set; }
  7. public uint? Attrib { get; internal set; }
  8. public uint? Crc { get; internal set; }
  9. public string Name { get; internal set; }
  10. public bool HasStream { get; internal set; }
  11. public bool IsDir { get; internal set; }
  12. public bool CrcDefined => Crc != null;
  13. public bool AttribDefined => Attrib != null;
  14. public void SetAttrib(uint attrib)
  15. {
  16. Attrib = attrib;
  17. }
  18. public DateTime? CTime { get; internal set; }
  19. public DateTime? ATime { get; internal set; }
  20. public DateTime? MTime { get; internal set; }
  21. public long? StartPos { get; internal set; }
  22. public bool IsAnti { get; internal set; }
  23. internal CFileItem()
  24. {
  25. HasStream = true;
  26. }
  27. }
  28. }