download_utils
extract_archive_file(archive_file, dst_folder=None)
Extract archived file to a directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
archive_file | str | Path to a archive file. | required |
dst_folder | Optional[str] | Directory where content will be extracted. By default, same folder where archive file is. | None |
Source code in services/processor/processor/download_utils.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
get_archive_ext_and_type(archive_file)
Get archive extension and type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
archive_file | str | Path to archive file. | required |
Returns:
| Type | Description |
|---|---|
| Tuple[str, str]: Archive extension and type. |
Source code in services/processor/processor/download_utils.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |