DAZ Script | |
---|---|
AccessMode | { ReadOnly, WriteOnly, Append } |
DAZ Script | |
---|---|
Boolean | addDirToZip ( String pathOnDisk, String pathInZip ) |
Boolean | addFileToZip ( String pathOnDisk, String pathInZip ) |
void | close () |
Boolean | compressAll ( String path, Boolean recursive=true ) |
Boolean | extractAll ( String basePath ) |
Boolean | extractCurrentFile ( String basePath ) |
Number | getCurrentFileAttributes () |
String | getCurrentFileComment () |
Number | getCurrentFileCompressedSize () |
String | getCurrentFileCompressionMethod () |
Number | getCurrentFileCompressionRatio () |
String | getCurrentFileCRC () |
Date | getCurrentFileDateTime () |
Boolean | getCurrentFileIsFolder () |
String | getCurrentFileName () |
Number | getCurrentFileUncompressedSize () |
Array | getFileNames () |
String | getGlobalComment () |
Number | getNumEntries () |
Boolean | goToFirstFile () |
Boolean | goToNextFile () |
Boolean | locateFile ( String pathInZip ) |
Boolean | open ( AccessMode mode ) |
Boolean | setGlobalComment ( String comment ) |
Deprecated | |
Number | getCurrentFileAtributes () |
Provides functionality for reading and writing zlib compressed *.zip files.
Creates a zip file with the given file name.
Parameter(s):
Boolean : addDirToZip( String pathOnDisk, String pathInZip )
Creates a directory entry within this zip.
Parameter(s):
Return Value:
true
if this zip file is open for writing and the operation was successful, otherwise false
.Since:
Boolean : addFileToZip( String pathOnDisk, String pathInZip )
Compresses the specified file into this zip.
Parameter(s):
Return Value:
true
if this zip file is open for writing and the operation was successful, otherwise false
.Since:
void : close()
Closes this zip file.
Boolean : compressAll( String path, Boolean recursive=true )
Compresses all of the files in the specified directory into this zip.
Parameter(s):
true
(default), the entire hierarchy of folders and files within path
are compressed. If false
, only the files in the specified path are compressed.Return Value:
true
if this zip file is open for writing and the operation was successful, otherwise false
.Boolean : extractAll( String basePath )
Extracts all of the files from this zip file. The relative path of the files are appended to the specified base path.
Parameter(s):
Return Value:
true
if this zip file is open for reading and the operation was successful, otherwise false
.Boolean : extractCurrentFile( String basePath )
Extracts the current file from this zip file. The relative path of the current file is appended to the specified base path.
Parameter(s):
Return Value:
true
if this zip file is open for reading and the operation was successful, otherwise false
.See Also:
Since:
Number : getCurrentFileAttributes()
Return Value:
See Also:
Since:
String : getCurrentFileComment()
Return Value:
See Also:
Number : getCurrentFileCompressedSize()
Return Value:
See Also:
Since:
String : getCurrentFileCompressionMethod()
Return Value:
See Also:
Since:
Number : getCurrentFileCompressionRatio()
Return Value:
See Also:
Since:
Return Value:
See Also:
Since:
Date : getCurrentFileDateTime()
Return Value:
See Also:
Since:
Boolean : getCurrentFileIsFolder()
Return Value:
true
if this zip file is open for reading and the current entry is a folder, otherwise false
.See Also:
Since:
Return Value:
See Also:
Number : getCurrentFileUncompressedSize()
Return Value:
See Also:
Since:
Array : getFileNames()
Return Value:
Return Value:
Number : getNumEntries()
Return Value:
See Also:
Boolean : goToFirstFile()
Sets the current file of this zip file to the first file.
Return Value:
true
if this zip file is open for reading and the operation was successful, otherwise false
.See Also:
Boolean : goToNextFile()
Sets the current file of this zip file to the next file.
Return Value:
true
if this zip file is open for reading and the operation was successful, otherwise false
.See Also:
Boolean : locateFile( String pathInZip )
Attempts to locate an entry within this zip file.
Parameter(s):
Return Value:
true
if this zip file is open for reading and the file was found, otherwise false
.Attention:
See Also:
Boolean : open( AccessMode mode )
Opens this zip file in the specified mode.
Parameter(s):
Return Value:
true
if the file was opened successfully, otherwise false
.Boolean : setGlobalComment( String comment )
Sets the global comment for this zip file.
Parameter(s):
Return Value:
true
if this zip file is open for writing and the comment was set, otherwise false
.Since:
Number : getCurrentFileAtributes()
Deprecated
Exists only to keep old code working. Do not use in new code. Use getCurrentFileAttributes() instead.
Since: