|
|
|
|
Error handling WLanguage procedure called by zipExtractDirectory WLanguage procedure ("Callback") called if an error is encountered when extracting files with zipExtractDirectory.
Archive is zipArchive // Open an archive IF zipOpen(Archive, "C:\Archives\Archive.zip") = 0 THEN // Extract the "Temp" directory at the root of the archive file tree zipExtractDirectory(Archive, "Temp", zipDrive, zipExtractDirectory_CallbackError) END INTERNAL PROCÉDURE zipExtractDirectory_CallbackError(ErrorCode is int, ... FileName is string) IF ErrorCode = 1 THEN RESULT zipCancel END END
Syntax
<Result> = zipExtractDirectory_CallbackError(<Error code> , <File name>)
<Result>: Integer constant The procedure can return one of the following constants: | | zipCancel | Cancels the extraction of files from the archive. | zipIgnore | Ignores the file in error. | zipRetry | Retries the file extraction. |
<Error code>: Integer Code of the error encountered during the extraction of the file. <File name>: Character string Path of the file that will be processed by zipExtractDirectory. Remarks Error codes The following error codes are returned: - 1: The path passed as parameter does not exist.
- 2: Access denied: the user has no sufficient rights.
- 3: The archive is corrupted.
- 4: The path does not exist in the archive.
- 6: The files of the sub-archives are not arranged in order (when extracting from a multi-part archive).
- 21: The specified password is not correct.
The message corresponding to the error code is returned by zipMsgError. Remarks:     Only ZIP, TAR and TGZ (TAR.GZ) archives are available.  The CAB format is not available.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|