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.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Lists content of archive as JSON.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Archive | 9.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Archive | Either container with archive or native file path. | "C:\test\test.zip" | |
Passphrase | Password to use. | Optional |
Returns JSON or error.
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 */)
Get content of a test zip file:
MBS( "Archive.Content"; "/Users/cs/Desktop/test.zip" )
Example result:
{
"count": 1,
"format": "ZIP 2.0 (deflation)",
"files": [
{
"Encrypted": 0,
"EncryptedMetaData": 0,
"EncryptedData": 0,
"GID": 20,
"UID": 501,
"NLink": 0,
"Size": 400,
"ModeString": "-rw-r--r-- ",
"Mode": 33188,
"XAttrCount": 0,
"Permissions": "644",
"RDevice": 0,
"FileType": "file",
"GroupName": "",
"UserName": "",
"HardLink": "",
"PathName": "test.rtf",
"SourcePath": "",
"SymLink": "",
"Flags": "",
"SymLinkType": null,
"AccessTime": "14.06.2022 14:48:16",
"ModificationTime": "14.06.2022 14:48:16",
"AttributeModificationTime": "14.06.2022 14:48:16"
}
]
}
This function checks for a license.
Created 8th December 2018, last changed 14th June 2022