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:
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
Statistic
FMM
Blog
Archive.Content
Lists content of archive as JSON.
Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
Archive | 9.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
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 JSON or error.
Description
Lists content of archive as JSON.JSON has an entry count for the file count, an entry format for the format type and an entry for files array.
Examples
Check archive content:
Set Variable [ $list ; Value: MBS("Archive.Content"; 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
Get content of encrypted archive:
MBS( "Archive.Content";
"/Users/cs/Desktop/invoices-2019-02-12_1924.zip"; /* path to archive (or container) */
"98234kjh245234" /* password */)
See also
Blog Entries
- MBS FileMaker Plugin, version 11.1pr2
- Embrace JSON
- MBS FileMaker Plugin, version 9.6pr3
- MBS FileMaker Plugin, version 9.2pr1
Release notes
- Version 11.1
- Fixed memory leak in Archive.Content function.
- Version 10.0
- Fixed problem in Archive.FileList and Archive.Content not returning error if encrypted archive could not be read.
- Version 9.2
- Changed Archive.Content to return error if archive is broken.
- Fixed Archive.Content to return flags correctly.
Created 8th December 2018, last changed 12nd February 2019
Archive.CompressContainer - Archive.Extract
Feedback: Report problem or ask question.

Links
MBS Xojo blog