ZipFile and file rigths

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Sun Jul 10 16:16:58 EDT 2005


perchef enlightened us with:
> it works well but i have a small problem : i can't see how i can
> deal with file rights.  When I unzip files with this script all the
> unzipped files haven't the good rights.

That's right. Why should they? ZIP doesn't store file permissions.

> ZipInfo objects doesn't store informations about rights ?

Correct.

> How can i fix this ?

Don't use ZIP. Use tar instead.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list