Cuma 16 Haziran 2006 13:41 tarihinde, Fredrik Lundh şunları yazmıştı:
> afaik, there's no atomic API for this. just a unified get/set function:
>
> http://www.opengroup.org/pubs/online/7908799/xsh/umask.html
Oops. :( Thanks for the help.
Regards,
- Faik
--
http://mail.python.org/mailman/li
Cuma 16 Haziran 2006 12:48 tarihinde, Fredrik Lundh şunları yazmıştı:
> Faik Uygur wrote:
> > Is there a python way of getting the current umask without changing it?
> > os.umask changes it, and i dont want to use os.system("umask")
>
> just call os.umask twice:
Is there a python way of getting the current umask without changing it?
os.umask changes it, and i dont want to use os.system("umask")
- Faik
--
http://mail.python.org/mailman/listinfo/python-list
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.umas
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: