Skip to content

USTAR.TarWriter.AppendEntry

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

USTAR.TarWriter.AppendEntry

Method Signatures

 Function AppendEntry(Entry As FolderItem, Optional RelativeRoot As FolderItem) As String
 Sub AppendEntry(Path As String, Data As MemoryBlock, ModifyDate As Date = Nil)
 Sub AppendEntry(Path As String, Data As Readable, Length As UInt32, ModifyDate As Date = Nil, Mode As Permissions = 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, 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.

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.
Mode Permissions Optional. The Unix-style file permissions of the entry.

Return value

When given a FolderItem to append, this method returns the path of the item within the archive.

Remarks

Appends a file or directory to the archive.

Entry-level points of interest denoted by "☜"



Clone this wiki locally