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
Faik Uygur wrote:
> This is not atomic. At this point i changed all the running python threads'
> umask and i don't want to change current umask. I just want to get it.
afaik, there's no atomic API for this. just a unified get/set function:
http://www.opengroup.org/pubs/online/7908799/xsh/um
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:
> current_mask = os.umask(0)
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:
current_mask = os.umask(0)
os.umask(current_mask)
--
http://mail.python.org/mailman/listinfo/pytho
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