# Can't find file in directory

**URL:** <https://forum.codewithmosh.com/t/cant-find-file-in-directory/17493>\
**Category:** Python\
**Created:** [January 6, 2023, 10:58am UTC](https://forum.codewithmosh.com/t/cant-find-file-in-directory/17493 "2023-01-06T10:58:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melachim](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Melachim](https://forum.codewithmosh.com/u/Melachim)\
**Post date:** [January 6, 2023, 10:58am UTC](https://forum.codewithmosh.com/t/cant-find-file-in-directory/17493/1 "2023-01-06T10:58:21Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/a/a189c990b425cbc7cec3e66e9da1f2d6a7388b4d.png)

Does somebody have an idea why that error occurs :)? Thank you very much for your help:

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://forum.codewithmosh.com/u/Alfred)\
**Post date:** [January 6, 2023, 12:49pm UTC](https://forum.codewithmosh.com/t/cant-find-file-in-directory/17493/2 "2023-01-06T12:49:04Z")

</div>

Hi could you please teach me how to post here. I’m new and can’t figured it out.
