Archive (open)
Syntax
LOADLIB "wh::filetypes/archiving.whlib";
OBJECTTYPE Archive
Properties
- PROPERTY archivecomment
Comment for this archive
- PROPERTY entries
List of entries in the archive
- PROPERTY onarchivingprogress
Function ptr called when MakeBlob reports progress
Functions
- MACRO AddDiskFolderRecursive(STRING diskpath, STRING basepath, RECORD options)
Add a disk folder and its files recursively
- MACRO AddFile(STRING fullpath, BLOB data, DATETIME modtime)
Add a file to the archive.
- MACRO AddFolder(STRING fullpath, DATETIME modtime)
Add a folder to the archive.
- BOOLEAN FUNCTION CanWriteArchive()
Can we write archives of this type?
- MACRO Close()
Closes the archive, releases all resources
- BLOB FUNCTION GetFile(STRING fullpath)
Returns a decompressed file from the archive
- BLOB FUNCTION MakeBlob()
Create a blob with the current archive entries
- MACRO OptimizeArchiveSorting()
Sort the entries to optimize for compression size (only needed for targz archives)
- MACRO RemoveEntries(STRING path, STRING mask)
Remove entries from the archive