current umask

Tino Lange Tino.Lange at surf-callino.de
Wed Oct 25 04:34:20 EDT 2000


Hi Python-Friends,

how can I determine the "current" umask
without touching it?

In 'os' there is  this command:

umask (mask)
Set the current numeric umask and returns the previous umask. Availability:
Unix, Windows.

But I cannot use it as

umask=os.umask()

But I don't want to change the value, just query the current one.
How is that possible?

Ciao

Tino






More information about the Python-list mailing list