func X3.EN_FILE_UNZIP(Clbfile PATH_FILE_ZIP_IN, Clbfile DESTINATION_PATH_IN, Char INCLUSIONS_FILTER_IN, Char EXCLUSIONS_FILTER_IN, Tinyint SUBSREP_IN, Char PASS_IN) : Integer

Unzip (decompress) a zip file

  • PATH_FILE_ZIP_IN Clbfile Full path or volume to the file to unzip
  • DESTINATION_PATH_IN Clbfile Full path or volume to the directory where to unzip the files
  • INCLUSIONS_FILTER_IN Char Filter to apply to the files to be unzipped in order to include only the corresponding ones (Example: *.txt, extraction*)
  • EXCLUSIONS_FILTER_IN Char Filter to apply to the files to be unzipped in order to exclude the corresponding ones (Example: *.dll, password*)
  • SUBSREP_IN Tinyint Must we also create the subdirectories or put everything in the destination path flat (1=Yes, 0=No)
  • PASS_IN Char Password to apply to the zipped file and necessary for unzipping (or empty)
Return Integer The number of files unzipped or 0 if not
Example

func X3.EN_FILE_UNZIP(filpath('tmp','SVG','zip'), filpath('SVG','',''), "*.dat", "SORDER*", 1, "Radiohead")
Unzip the files found in the SVG.zip file to the SVG save directory of the current folder keeping only .dat files and except those starting with SORDER with subdirectories thanks to a password