Overte C++ Documentation
Old

Unzips a file in the local file system to a new, unique temporary directory.

Parameters
path- The path of the zip file in the local file system. May have a leading "file:///". Need not have a ".zip" extension if it is in a temporary directory (as created by getTempDir).
url- Not used.
autoAdd- Not used by user scripts. The value is simply passed through to the unzipResult signal.
isZip- Set to true if path has a ".zip" extension, false if it doesn't (but should still be treated as a zip file).
isBlocks- Not used by user scripts. The value is simply passed through to the unzipResult signal. example from JS, needs to be converted) Select and unzip a file. File.unzipResult.connect(function (zipFile, unzipFiles, autoAdd, isZip, isBlocks) { print("File.unzipResult()"); print("- zipFile: " + zipFile); print("- unzipFiles(" + unzipFiles.length + "): " + unzipFiles); print("- autoAdd: " + autoAdd); print("- isZip: " + isZip); print("- isBlocks: " + isBlocks); });

var zipFile = Window.browse("Select a Zip File", "", "*.zip"); if (zipFile) { File.runUnzip(zipFile, "", false, true, false); } else { print("Zip file not selected."); }