Commit cc2f004d authored by Michael Hanselmann's avatar Michael Hanselmann

Fix bug introduced in 76e5f8b5: mkdir mode

After commit 76e5f8b5, mkdir_mode in utils.RenameFile is
no longer passed to Makedirs. This is fixed by this patch.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 76e5f8b5
......@@ -365,7 +365,7 @@ def RenameFile(old, new, mkdir=False, mkdir_mode=0750):
# as efficient.
if mkdir and err.errno == errno.ENOENT:
# Create directory and try again
Makedirs(os.path.dirname(new))
Makedirs(os.path.dirname(new), mode=mkdir_mode)
return os.rename(old, new)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment