Skip to content

PKZip.ZipWriter.AppendEntry

Andrew Lambert edited this page Nov 26, 2022 · 7 revisions

PKZip.ZipWriter.AppendEntry

Method Signatures

 Function AppendEntry(Entry As FolderItem, Optional RelativeRoot As FolderItem) As String
 Sub AppendEntry(Path As String, Data As Readable, Length As UInt32, ModifyDate As Date = Nil)
 Sub AppendEntry(Path As String, Data As MemoryBlock, ModifyDate As Date = Nil)

Parameters

AppendEntry(FolderItem, FolderItem)

Name Type Comment
Entry FolderItem A file or directory to append to the archive.
RelativeRoot FolderItem Optional. The root directory of the archive.

AppendEntry(String, Readable, UInt32, Date)

Name Type Comment
Path String The archive path of the entry.
Data Readable The stream to read file data from.
Length UInt32 The number of bytes to read from Data.
ModifyDate Date Optional. The modification date of the entry.

AppendEntry(String, MemoryBlock, Date)

Name Type Comment
Path String The archive path of the entry.
Data MemoryBlock The file data.
ModifyDate Date Optional. The modification date of the entry.

Return value

When given a FolderItem to append, this method returns the path of the item within the archive. If RelativeRoot is specified then the entry is stored in the archive using a path that is relative to RelativeRoot. If RelativeRoot is not specified then the entry is added to the archive root directly.

Remarks

Appends a file or directory to the archive. Note that directory contents are not added; use ZipWriter.AppendDirectory for that.

See also

Entry-level points of interest denoted by "☜"



Clone this wiki locally