namespace SabreTools.Data.Models.PKZIP
{
///
/// The following is the layout of the UNIX "extra" block.
///
/// The variable length data field will contain file type
/// specific data. Currently the only values allowed are
/// the original "linked to" file names for hard or symbolic
/// links, and the major and minor device node numbers for
/// character and block device nodes. Since device nodes
/// cannot be either symbolic or hard links, only one set of
/// variable length data is stored. Link files will have the
/// name of the original file stored. This name is NOT NULL
/// terminated. Its size can be determined by checking TSize -
/// 12. Device entries will have eight bytes stored as two 4
/// byte entries (in little endian format). The first entry
/// will be the major device number, and the second the minor
/// device number.
///
/// Header ID = 0x000D
///
public class UnixExtraField : ExtensibleDataField
{
///
/// File last access time
///
public uint FileLastAccessTime { get; set; }
///
/// File last modification time
///
public uint FileLastModificationTime { get; set; }
///
/// File user ID
///
public ushort FileUserID { get; set; }
///
/// File group ID
///
public ushort FileGroupID { get; set; }
///
/// Variable length data field
///
public byte[] Data { get; set; } = [];
}
}