Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us



Describes parameters of the file stored within the archive file.


public class ArchiveItem


  // Methods

  public ArchiveItem();

  public void Reset();


  // Properties

  public DateTime LastWriteTime { get; }


  // Fields

  public string Comment;

  public long CompressedSize;

  public double CompressionRate;

  public uint CRC;

  public bool Encrypted;

  public FileAttributes ExternalFileAttributes;

  public string FileName;

  public InternalSearchRec Handle;

  public string StoredPath;

  public long UncompressedSize;




Public Class ArchiveItem

  ' Methods

  Public Sub New()

  Public Sub Reset()


  ' Properties

  Public ReadOnly Property LastWriteTime As DateTime


  ' Fields

  Public Comment As String

  Public CompressedSize As Long

  Public CompressionRate As Double

  Public CRC As UInt32

  Public Encrypted As Boolean

  Public ExternalFileAttributes As FileAttributes

  Public FileName As String

  Public Handle As InternalSearchRec

  Public StoredPath As String

  Public UncompressedSize As Long

End Class





ArchiveItem value indicates parameters of the file found by FindFirst or FindNext.


FileName is a name of the file stored within the archive.


StoredPath is a path to this file inside the archive.


CompressedSize is a size in bytes of the compressed file.


UncompressedSize is a size in bytes of the uncompressed file.


CompressionRate indicate compression rate for this file.

CompressionRate = (1 - CompressedSize / UncompressedSize) * 100.0


Encrypted indicates if file is encrypted with Password.


CRC is a CRC32 check sum of the compressed file.


ExternalFileAttributes indicates extermal file attributes. This value can be any combination of faReadOnly, faHidden, faSysFile, faVolumeID, faDirectory, faArchive constants defined in SysUtils. If Options.SetAttributes is set to True then ExtractFiles will set these attributes to the extracted file.


Comment is a comment of the file stored in the archive.


Note:    Do not modify Handle field of this record. It is used by FindFirst and FindNext methods.

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Jun 16, 2024