Unit 'Zipper' Package
[Overview][Constants][Types][Classes][Index] [#fcl]

TZipFileEntry

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Represents a file or directory added to a .ZIP file.

Declaration

Source position: zipper.pp line 363

type TZipFileEntry = class(TCollectionItem)

public

  constructor Create(); override;

  

Constructor for the class instance.

  function IsDirectory;

  

True if the entry is a directory on the local file system.

  function IsLink;

  

True if the directory is a symbolic link on the local file system.

  procedure Assign(); override;

  

Copies property values from the specified persistent object.

  property Stream: TStream; [rw]

  

Stream with the content for the entry.

published

  property ArchiveFileName: AnsiString; [rw]

  

Name of the file or directory in the .ZIP archive.

  property UTF8ArchiveFileName: UTF8String; [rw]

  

Archive filename as UTF8 string.

  property DiskFileName: AnsiString; [rw]

  

Name of the file or directory on the local file system.

  property UTF8DiskFileName: UTF8String; [rw]

  

Name of the file or directory on the local file system using UTF-8 encoding.

  property Size: Int64; [rw]

  

Size of the compressed content for the file or directory.

  property DateTime: TDateTime; [rw]

  

Timestamp for the file or directory in the .ZIP archive.

  property OS: Byte; [rw]

  

Indication of operating system/file system.

  property Attributes: LongWord; [rw]

  

File attributes for the file or directory.

  property CompressionLevel: Tcompressionlevel; [rw]

  

Compression level applied to the content stored in the .ZIP archive.

end;

Inheritance

TZipFileEntry

  

Represents a file or directory added to a .ZIP file.

|

TCollectionItem

|

TPersistent

|

TObject,IFPObserved

Description

TZipFileEntry is a TCollectionItem descendant which represents a file or directory added to a .ZIP file archive. TZipFileEntry is the type used for items in the Entries property in the TZipFileEntries collection.

TZipFileEntry provides properties with metadata for the file or directory, including:

ArchiveFileName
Name of the file or directory in the .ZIP archive.
UTF8ArchiveFileName
Name of the file or directory in the .ZIP archive using UTF-8 encoding.
DiskFileName
Name of the file or directory on the local file system.
UTF8DiskFileName
Name of the file or directory using UTF-8 encoding.
Size
Size of the compressed file or directory in the .ZIP archive.
DateTime
The timestamp for file or directory in the .ZIP archive.
OS
Indicates the operating system device type / file system where the file or directory originated.
Attributes
File attributes for the entry.
CompressionLevel
Compression level applied to the content in the .ZIP archive.
Stream
TStream instance with the content for the entry.

Use IsDirectory to determine if the entry represents a directory.

Use IsLink to determine if the entry is a symbolic link on the local file system.


Documentation generated on: Dec 26 2024