Return the octal mode of a file instead of decimal.
This commit is contained in:
parent
41fed6ef0c
commit
3e9159b4d2
1 changed files with 1 additions and 1 deletions
2
file
2
file
|
@ -58,7 +58,7 @@ def add_path_info(kwargs):
|
||||||
kwargs['user'] = user
|
kwargs['user'] = user
|
||||||
kwargs['group'] = group
|
kwargs['group'] = group
|
||||||
st = os.stat(path)
|
st = os.stat(path)
|
||||||
kwargs['mode'] = stat.S_IMODE(st[stat.ST_MODE])
|
kwargs['mode'] = oct(stat.S_IMODE(st[stat.ST_MODE]))
|
||||||
# secontext not yet supported
|
# secontext not yet supported
|
||||||
if os.path.islink(path):
|
if os.path.islink(path):
|
||||||
kwargs['state'] = 'link'
|
kwargs['state'] = 'link'
|
||||||
|
|
Loading…
Reference in a new issue