Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

Archive.Extract

Extracts files in an archive.

Component Version macOS Windows Linux Server iOS SDK
Archive 9.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Archive.Extract"; Archive; FileList; DestinationFolder { ; Passphrase } )   More

Parameters

Parameter Description Example Flags
Archive Either container with archive or native file path. "C:\test\test.zip"
FileList Optional list of files to extract.
Pass empty text when you need all files.
""
DestinationFolder The native path to the destination folder. "/Users/cs/Desktop"
Passphrase Password to use. Optional

Result

Returns OK or error.

Description

Extracts files in an archive.
Restores file permissions, times, Mac metadata and file flags.

Use Archive.ExtractFile if you only need one file as container.
You may need to use Plugin.LoadIconvLibrary to load iconv library for text conversion.

Examples

Expand an archive:

MBS( "Archive.Extract";
"/Users/cs/Desktop/invoices-2019-02-12_1924.zip"; /* path to archive (or container) */
"" /* all files */;
"/Users/cs/Desktop/"; /* dest */
"98234kjh245234" /* password */)

See also

Release notes

Blog Entries

This function checks for a license.

Created 11st December 2018, last changed 13th May 2023


Archive.Create - Archive.ExtractFile

💬 Ask a question or report a problem