Re: Extracting zip files containing directories with ZipFile

2009-04-12 Thread Márcio Faustino
On Apr 12, 5:01 pm, MRAB wrote: > Strictly speaking, zip files don't contain nested folders, but only a > flat list of files. Didn't know that, thanks. On Apr 12, 8:01 pm, "Martin v. Löwis" wrote: > That depends on the version of Python you are using. > Seehttp://bugs.python.org/4710 Thanks.

Re: Extracting zip files containing directories with ZipFile

2009-04-12 Thread Martin v. Löwis
> Does the ZipFile class correctly handles directories contained within > zip files? That depends on the version of Python you are using. See http://bugs.python.org/4710 Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Extracting zip files containing directories with ZipFile

2009-04-12 Thread MRAB
Márcio Faustino wrote: Hi, Does the ZipFile class correctly handles directories contained within zip files? For example, calling "extractall" on an archive with only "folder/ file.txt" in it results in an IOError saying "No such file or directory" for "./folder/file.txt", because it created a f

Extracting zip files containing directories with ZipFile

2009-04-12 Thread Márcio Faustino
Hi, Does the ZipFile class correctly handles directories contained within zip files? For example, calling "extractall" on an archive with only "folder/ file.txt" in it results in an IOError saying "No such file or directory" for "./folder/file.txt", because it created a file named "folder" instea