get_archived_file_list#
- get_archived_file_list(archive_path: str | CloudPath | Path) list [source]#
Deprecated since version 1.30.0: Import it from
sertit.path
instead ofsertit.files
Get the list of all the files contained in an archive.
- Parameters:
archive_path (AnyPathStrType) – Archive path
- Returns:
All files contained in the given archive
- Return type:
Example
>>> 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']