Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1    Statistic  

Archive.FileList

Lists file paths in the archive.

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

Parameters

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

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 than 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

Blog Entries

Release notes

Created 8th December 2018, last changed 17th December 2018


Archive.Extract   -   Archive.LibVersion

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins