Skip to main content

Get list of files

Gets a hierarchical list of files and directories in the archive

Function GetFilesList(Val Archive) Export

ParameterCLI optionTypeRequiredDescription
Archive--srcString, BinaryDataPath to the archive on disk or binary data
Returns

Map Of KeyAndValue - Information about files in the archive

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);
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
}
]
}