Re: unzip zip files

2006-05-15 Thread DataSmash
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

Re: unzip zip files

2006-05-13 Thread Jay Parlar
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

Re: unzip zip files

2006-05-12 Thread Edward Elliott
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

Re: unzip zip files

2006-05-12 Thread Marcelo Ramos
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