Thanks!
I ended up using the "-d" parameter.
I did try the zipfile module but I couldn't figure it out, nor could I
find any examples using it.
I also didn't have any luck changing the working dircectory and making
it work.
import subprocess, os
# Get all the zip files in the current directory.
f
On May 12, 2006, at 5:45 PM, DataSmash wrote:
> I need to unzip all zip file(s) in the current directory
> into their own subdirectories. The zip file name(s) always
> start with the string "usa" and end with ".zip".
> The code below will make the subdirectory, move the zip
> file into the subdi
Marcelo Ramos wrote:
> DataSmash escribió:
>> file into the subdirectory, but unzips the contents into the
>> root (current) directory. I want the contents of the zip file
>> unloaded into the newly created subdirectory where the zip file is.
>>
>
> See "-d" zip's parameter in man zip.
or chang
DataSmash escribió:
> I need to unzip all zip file(s) in the current directory
> into their own subdirectories. The zip file name(s) always
> start with the string "usa" and end with ".zip".
> The code below will make the subdirectory, move the zip
> file into the subdirectory, but unzips the cont
I need to unzip all zip file(s) in the current directory
into their own subdirectories. The zip file name(s) always
start with the string "usa" and end with ".zip".
The code below will make the subdirectory, move the zip
file into the subdirectory, but unzips the contents into the
root (current) d