get_archived_file_list#

get_archived_file_list(archive_path: Union[str, cloudpathlib.cloudpath.CloudPath, pathlib.Path]) list[source]#

Get the list of all the files contained in an archive.

>>> arch_path = 'D:/path/to/zip.zip'
>>> get_archived_file_list(arch_path, file_regex)
['file_1.txt', 'file_2.tif', 'file_3.xml', 'file_4.geojson']
Parameters

archive_path (Union[str, CloudPath, Path]) – Archive path

Returns

All files contained in the given archive

Return type

list