Skip to main content

Timeline for answer to How to read text files in a zipped folder in Python by alecxe

Current License: CC BY-SA 3.0

Post Revisions

6 events
when toggle format what by license comment
Mar 24, 2024 at 2:01 comment added Manoel Vilela @viggnah the correct solution to check non-extracted zip files is using zip info metadata. In that case, using z.getinfo(filename).is_dir() for that piece of code above instead os.path.isdir(filename).
Jul 16, 2022 at 10:07 comment added viggnah os.path.isdir() doesn't work when checking inside a zip file for me on python 3.8
Mar 25, 2022 at 8:22 comment added Lying Dog I believe os.path.isdir is meant to check if a path is a directory in the local file system. Here, it is used on a path from inside a zip file - is that really guarantueed to work?
Dec 19, 2017 at 13:31 history edited alecxe CC BY-SA 3.0
added 2 characters in body
Mar 25, 2014 at 21:55 vote accept ChuNan
Mar 25, 2014 at 21:31 history answered alecxe CC BY-SA 3.0