-
-
Notifications
You must be signed in to change notification settings - Fork 4
PKZip.ZipWriter.AppendEntry
Andrew Lambert edited this page Nov 26, 2022
·
7 revisions
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)| Name | Type | Comment |
|---|---|---|
| Entry | FolderItem | A file or directory to append to the archive. |
| RelativeRoot | FolderItem | Optional. The root directory of the archive. |
| 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. |
| 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. |
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.
Appends a file or directory to the archive. Note that directory contents are not added; use ZipWriter.AppendDirectory for that.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.