Get list of files
Gets a hierarchical list of files and directories in the archive
- Parameters
- Advanced call ?
Function GetFilesList(Val Archive) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Archive | --src | String, BinaryData | ✔ | Path to the archive on disk or binary data |
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["Tar_ArchivePath"];
Result = OPI_Tar.GetFilesList(ArchivePath);
- Bash
- CMD/Bat
oint tar GetFilesList \
--src "/tmp/lgta4lg1.1f0"
oint tar GetFilesList ^
--src "/tmp/lgta4lg1.1f0"
Result
{
"entries": [
{
"directory": true,
"entries": [
{
"directory": false,
"name": "note.txt",
"size": 11
}
],
"name": "docs"
},
{
"directory": false,
"name": "readme.txt",
"size": 17
}
]
}