-
-
Couldn't load subscription status.
- Fork 4
USTAR.WriteTar
Andrew Lambert edited this page Nov 26, 2022
·
5 revisions
USTAR.WriteTar
Protected Function WriteTar(ToArchive() As FolderItem, OutputFile As FolderItem, Optional RelativeRoot As FolderItem, Overwrite As Boolean = False, CompressionLevel As Integer) As Boolean
Protected Function WriteTar(RootDirectory As FolderItem, OutputFile As FolderItem, Overwrite As Boolean = False, CompressionLevel As Integer) As Boolean| Name | Type | Comment |
|---|---|---|
| ToArchive | FolderItem array | A list of files to be appended to the archive |
| OutputFile | FolderItem | The archive file to which files should be appended. |
| RelativeRoot | FolderItem | Optional. The 'root' of the archive (for generating relative paths) |
| Overwrite | Boolean | Optional. If True then the Outputfile is overwritten if it exists. |
| CompressionLevel | Integer | Optional. Specify a number between 1 and 9 to use gzip compression. |
| Name | Type | Comment |
|---|---|---|
| RootDirectory | FolderItem | A directory whose contents should be recursively added to the archive. |
| OutputFile | FolderItem | The archive file to which files should be appended. |
| Overwrite | Boolean | Optional. If True then the Outputfile is overwritten if it exists. |
| CompressionLevel | Integer | Optional. Specify a number between 1 and 9 to use gzip compression. |
Returns True if the operation was successful.
Creates a tape archive of theToArchive array and writes it to the OutputFile. If CompressionLevel is between 1 and 9 then gzip compression is used.
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.