umask option for tarfile extract

Faik Uygur faik at pardus.org.tr
Thu Jun 15 08:49:59 EDT 2006


Perşembe 15 Haziran 2006 15:20 tarihinde, Fredrik Lundh şunları yazmıştı: 
> Faik Uygur wrote:
> > While extracting a tar file, is there a way to give an umask option for
> > creating the non-existing upper directories of the file within the tar
> > archive.
>
> os.umask

Nope, this will not help. tarfile.py changes the mode after creating the 
missing directory. So whatever it is, it changes that to 0777.

- Faik



More information about the Python-list mailing list