Files

42 lines
1.1 KiB
C#
Raw Permalink Normal View History

2013-04-28 11:25:37 +01:00
using System;
namespace SharpCompress.Common.SevenZip
{
2013-04-28 12:30:18 +01:00
internal class CFileItem
{
public long Size { get; internal set; }
public uint? Attrib { get; internal set; }
public uint? Crc { get; internal set; }
public string Name { get; internal set; }
2013-04-28 11:25:37 +01:00
2013-04-28 12:30:18 +01:00
public bool HasStream { get; internal set; }
public bool IsDir { get; internal set; }
2013-04-28 12:32:55 +01:00
public bool CrcDefined
{
get { return Crc != null; }
}
public bool AttribDefined
{
get { return Attrib != null; }
}
2013-04-28 11:25:37 +01:00
2013-04-28 12:30:18 +01:00
public void SetAttrib(uint attrib)
{
this.Attrib = attrib;
}
2013-04-28 11:25:37 +01:00
2013-04-28 12:30:18 +01:00
public DateTime? CTime { get; internal set; }
public DateTime? ATime { get; internal set; }
public DateTime? MTime { get; internal set; }
2013-04-28 11:25:37 +01:00
2013-04-28 12:30:18 +01:00
public long? StartPos { get; internal set; }
public bool IsAnti { get; internal set; }
2013-04-28 11:25:37 +01:00
2013-04-28 12:30:18 +01:00
internal CFileItem()
{
HasStream = true;
}
}
2013-04-28 11:25:37 +01:00
}