zipfile and file permissions

P

Pete Forman

I'm trying to move the building of a zip file from a shell script into
python. It is mostly working but when I unzip the files the UNIX
permissions are not preserved. The zip program I've been using is the
standard(?) one on Linux, from Info-Zip. Presumably I need to do
something with external_attr in ZipInfo, any pointers?
 
R

Robert Kern

Pete said:
I'm trying to move the building of a zip file from a shell script into
python. It is mostly working but when I unzip the files the UNIX
permissions are not preserved. The zip program I've been using is the
standard(?) one on Linux, from Info-Zip. Presumably I need to do
something with external_attr in ZipInfo, any pointers?

C.f.: http://mail.python.org/pipermail/pythonmac-sig/2005-March/013491.html

--
Robert Kern
(e-mail address removed)

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,470
Messages
2,571,809
Members
48,797
Latest member
PeterSimpson
Top