Re: umask option for tarfile extract

2006-06-15 Thread Faik Uygur
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.

Re: umask option for tarfile extract

2006-06-15 Thread Fredrik Lundh
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 -- http://mail.python.org/mailman/listinfo/python-list

umask option for tarfile extract

2006-06-15 Thread Faik Uygur
Hello, 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. The default behaviour is to create the directories with 0777 permission bits. Code taken from tarfile.py of python version 2.4.3: