Merge pull request #249 from jhoekx/octal-file-mode

Return the octal mode of a file instead of decimal.
pull/4420/head
Michael DeHaan 2012-04-26 16:25:39 -07:00
commit a0ac936a55
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def add_path_info(kwargs):
kwargs['user'] = user
kwargs['group'] = group
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
if os.path.islink(path):
kwargs['state'] = 'link'