mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
traffic: fix mk_masked_dir doc and comments
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
709d2c84cb
commit
9da79b54fa
@ -2146,8 +2146,9 @@ def calc_percentile(values, percentile):
|
||||
|
||||
|
||||
def mk_masked_dir(*path):
|
||||
"""In a testenv we end up with 0777 diectories that look an alarming
|
||||
"""In a testenv we end up with 0777 directories that look an alarming
|
||||
green colour with ls. Use umask to avoid that."""
|
||||
# py3 os.mkdir can do this
|
||||
d = os.path.join(*path)
|
||||
mask = os.umask(0o077)
|
||||
os.mkdir(d)
|
||||
|
Loading…
Reference in New Issue
Block a user