В Ubuntu при извлечении zip-файла есть опция -j
, которая:
junk paths. The archive's directory structure is not recreated; all files are
deposited in the extraction directory (by default, the current one).
Я ищу такой вариант в python, но не нашла ничего успешного для моего кода :
with zipfile.ZipFile(my_file) as zip_ref:
zip_ref.extractall(my_path)
Как мне справиться с этой ситуацией?
Большое спасибо за вашу информацию!