|
|
|
|
- Use conditions
- Error codes
- Stored path of archive files
- Zip files exceeding 4 GB
<zipArchive variable>.ChangePath (Function) In french: <Variable zipArchive>.ChangeChemin Modifies the stored path of a file in an archive (in ZIP, WDZ or 7z format). Used to configure the extraction path of file. Syntax
Modifying the stored path of a file identified by its path Hide the details
<Result> = <Archive>.ChangePath(<File path> , <New file path>)
<Result>: Integer - 0 if the modification was performed,
- An error code (value greater than 0) otherwise. For more details on these error codes, see the Remarks.
<Archive>: zipArchive variable Name of a variable of type zipArchive corresponding to the archive in which the path of the file is to be modified. <File path>: Character string Stored path of the file to modify. <New file path>: Character string New path to store for the file (up to 260 characters). Remarks Use conditions The path of an archive file can be modified if: - The archive exists (archives are created using <zipArchive variable>.Create).
- The archive is accessible in read/write.
- The archive is a single-part archive.
Caution: - Archives in CAB format: This function is not available. This format cannot be used to store the path of a file.
- Archives in RAR format: This function is not available.
- Archives in TAR and TGZ (TAR.GZ) format: This function is not available.
- Archives in 7z format: The archive is entirely compressed whenever <zipArchive variable>.ChangePath is called.
- Only ZIP, TAR and TGZ (TAR.GZ) archives are available.
Error codes The following error codes are returned: - 1: The path passed as parameter does not exist.
- 3: The archive is corrupted.
The message corresponding to the error code is returned by zipMsgError. Stored path of archive files The modified path does not necessarily contain the same sections as the initial path. For example, if the paths of the files contain the different directories as well as the name and extension of the file, the new path may only contain the name and extension of the file. Zip files exceeding 4 GB To use <zipArchive variable>.ChangePath on files exceeding 4 GB, the archive must have been created by <zipArchive variable>.Create with the constant zipHeader64. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|