unzip()
The function unpacks a file into a specified directory.
Synopsis
int unzip(const string &zipArchiveFile, string destinationDir, string logFilePath = "")
Parameters
Parameter | Description |
---|---|
zipArchiveFile | Complete native path to the zip file. |
destinationDir | Complete native directory path. |
logFilePath | Optional log file path. |
Return value
- The function returns 0 if it was executed successfully.
- In the event of errors, the function returns -1 if an empty or non-existent directory or archive file is specified.
- The function returns -2 if the executable file 7-Zip (WIN) or zip (Linux) is not available.
- The function returns -3 if the command execution fails.
Description
The function unpacks a file into a specified directory.
Assignment
File functionsAvailability
UI, CTRL