Get list of files
Gets a hierarchical list of files and directories in the archive
- Parameters
- Advanced call ?
Function GetFilesList(Val Archive, Val Password = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Archive | --src | String, BinaryData | ✔ | Path to the archive on disk or binary data |
| Password | --password | String | ✖ | archive password, if required |
Returns
Map Of KeyAndValue - Information about files in the archive
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Parameters with Binary data type can also accept file paths on disk and URLs
1C:Enterprise/OneScript code example
ArchivePath = Parameters["SevenZ_ArchivePath"];
Result = OPI_7z.GetFilesList(ArchivePath);
- Bash
- CMD/Bat
oint 7z GetFilesList \
--src "/tmp/1jxe04za.q5m" \
--password "***"
oint 7z GetFilesList ^
--src "/tmp/1jxe04za.q5m" ^
--password "***"
Result
{
"entries": [
{
"directory": true,
"entries": [
{
"compressed_size": 15,
"directory": false,
"name": "note.txt",
"size": 11
}
],
"name": "docs"
},
{
"compressed_size": 20,
"directory": false,
"name": "readme.txt",
"size": 16
}
]
}