BE_Unzip

BE_Unzip ( archiveFilePath {; outputFolderPath } )

Unzips the archive file found at the path archiveFilePath. The unzipped file(s) are put into the same location as the zip file itself by default, or into the outputFolderPath folder if specified. Any existing file(s) will be overwritten.

Version : 1.3
Version : 2.2 added the outputFolderPath parameter.
4.2.0 : added the option to allow archiveFilePath to be a container field.

Parameters :
archiveFilePath : a plugin file path, or a container field.  If the container field contains text, it's treated as a path to a file.
outputFolderPath ( optional ) : a system folder path to put the result.

Result : 0 on success. Error values can be retrieved with BE_GetLastError.

Notes : you can use this with a Set Field script step to write the result into a container field.

Examples :

//Select a zip file and unzip it.
BE_Unzip ( BE_SelectFile ( "Select a Zip file to unzip." ) )
//Select a file on the desktop
BE_Unzip ( "/Users/nick/Desktop/MyFile.zip" )
//Select a file on the desktop, to other folder
BE_Unzip ( "/Users/nick/Desktop/MyFile.zip" ; "/Users/nick/Desktop/ResultFolder" )

Still need help? Contact Us Contact Us