You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
370 B

import os
from zipfile import ZipFile
def create_zip(client):
if "output" not in os.listdir():
os.mkdir("output")
with ZipFile(f"output{os.sep}{client}.zip", "w") as output_zip:
os.chdir("temp")
for file in os.listdir():
output_zip.write(f"{file}")
os.remove(f"{file}")
os.chdir("..")
os.rmdir("temp")