mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-12-22 10:45:31 +00:00
Fix creating wrong zip archive
This commit is contained in:
parent
924e2c240d
commit
ad0d065b03
|
@ -68,7 +68,7 @@ async def appliance_data(
|
|||
async def zip_archive(appliance: "HonAppliance", path: Path, anonymous: bool = False):
|
||||
data = await appliance_data(appliance, path, anonymous)
|
||||
archive = data[0].parent
|
||||
shutil.make_archive(str(archive), "zip", path)
|
||||
shutil.make_archive(str(archive.parent), "zip", archive)
|
||||
shutil.rmtree(archive)
|
||||
return f"{archive.stem}.zip"
|
||||
|
||||
|
|
Loading…
Reference in a new issue