Re: Recursive zipping of Directories in Windows

2007-02-06 Thread Jim
On Feb 6, 2:47 pm, "MRAB" <[EMAIL PROTECTED]> wrote: > On Feb 6, 1:48 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 4, 12:42 pm, "Jandre" <[EMAIL PROTECTED]> wrote: > > > > On Feb 1, 9:39 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > > > > > Jandre wrote: > > > > > Hi > > > > >

Re: Recursive zipping of Directories in Windows

2007-02-06 Thread MRAB
On Feb 6, 1:48 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Feb 4, 12:42 pm, "Jandre" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 1, 9:39 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > > > > Jandre wrote: > > > > Hi > > > > > I am a python novice and I am trying to write a python script (m

Re: Recursive zipping of Directories in Windows

2007-02-05 Thread [EMAIL PROTECTED]
On Feb 4, 12:42 pm, "Jandre" <[EMAIL PROTECTED]> wrote: > On Feb 1, 9:39 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > > > > > Jandre wrote: > > > Hi > > > > I am a python novice and I am trying to write a python script (most of > > > the code is borrowed) to Zip a directory containing some other >

Re: Recursive zipping of Directories in Windows

2007-02-04 Thread Josh Bloom
Hi Jandre, Your code is treating the directory as a file and trying to open it and read its bytes to zip them. You'll need to differentiate between files and directories. You'll need to check out the Zip module to see how it expects files that should be nested within folders. I believe you'll ne

Re: Recursive zipping of Directories in Windows

2007-02-04 Thread Jandre
On Feb 1, 9:39 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Jandre wrote: > > Hi > > > I am a python novice and I am trying to write a python script (most of > > the code is borrowed) to Zip a directory containing some other > > directories and files. The script zips all the files fine but when it

Re: Recursive zipping of Directories in Windows

2007-02-01 Thread Larry Bates
Jandre wrote: > Hi > > I am a python novice and I am trying to write a python script (most of > the code is borrowed) to Zip a directory containing some other > directories and files. The script zips all the files fine but when it > tries to zip one of the directories it fails with the following >

Recursive zipping of Directories in Windows

2007-02-01 Thread Jandre
Hi I am a python novice and I am trying to write a python script (most of the code is borrowed) to Zip a directory containing some other directories and files. The script zips all the files fine but when it tries to zip one of the directories it fails with the following error: "IOError: [Errno 13]