From 3594d1ce80f2b22dfc1b08185b7489e898ae9641 Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Thu, 26 Apr 2012 14:55:31 +0200 Subject: [PATCH] Return the octal mode of a file instead of decimal. --- library/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/file b/library/file index 91afb4b746..03d2a7d413 100755 --- a/library/file +++ b/library/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'