Hey, i was following the python tutorial from mosh :
9. Python standard Library, 5- working with zip files
and i used the following code:
from pathlib import Path
from zipfile import ZipFile
with ZipFile(“files.zip”, “w”) as zip:
for path in Path(r"C:\Users\anohl\OneDrive\Dokumente\Python Projekte Neu\Coding with mosh online course\ecommerce").rglob(“.”):
zip.write(path)
with ZipFile(“files.zip”) as zip:
print(zip.namelist())
info = zip.getinfo(r"C:\Users\anohl\OneDrive\Dokumente\Python Projekte Neu\Coding with mosh online course\ecommerce_init_")
print(info.file_size)
print(info.compress_size)
the problem is that i get the following error:
Does somebody have an idea why that error occurs :)? Thank you very much for your help: