mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-01-19 02:50:44 +00:00
Fix error in archive again
This commit is contained in:
parent
b5d8a90d79
commit
4e88bc7a9f
|
@ -70,7 +70,7 @@ async def zip_archive(
|
|||
) -> str:
|
||||
data = await appliance_data(appliance, path, anonymous)
|
||||
archive = data[0].parent
|
||||
shutil.make_archive(str(archive.parent), "zip", archive)
|
||||
shutil.make_archive(str(archive), "zip", archive)
|
||||
shutil.rmtree(archive)
|
||||
return f"{archive.stem}.zip"
|
||||
|
||||
|
|
Loading…
Reference in a new issue