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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Archive.FileList

Lists file paths in the archive.

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

Parameters

Parameter Description Example Flags
Archive Either container with archive or native file path. "C:\test\test.zip"
Passphrase Password to use. Optional

Result

Returns list or error.

Description

Lists file paths in the archive.
Please use Archive.Content if you need more details.
This provides file list, which you can filter and then pass to Archive.Extract.

Examples

Get file list:

Set Variable [ $list ; Value: MBS("Archive.FileList"; If(IsEmpty($Path); $Container; $Path)) ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to read container" ; $list ]
Else
    Set Field [ $Content ; MBS("JSON.Colorize"; $list) ]
End If

See also

Release notes

Blog Entries

Created 8th December 2018, last changed 3th April 2021


Archive.ExtractFile - Archive.GZipDecompress

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat