util::unzip (public)

 util::unzip -source source -destination destination [ -overwrite ]

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Unzip helper, performing generic path checks (../, absolute paths, Windows absolute paths). The function prefer bsdtar (Debian libarchive) when present and no CP850 recoding is needed. For legacy CP850 filenames, use unzip -O CP850, but only if the archive does not contain symlink entries.

Switches:
-source (required)
must be the name of a valid zip file to be decompressed
-destination (required)
must be the name of a valid directory to contain decompressed files
-overwrite (optional, boolean)
Boolean flag

Testcases:
zip_and_unzip
[ show source ]
Show another procedure: