mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Actually use mode
This commit is contained in:
parent
f4f39207fa
commit
722665747e
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ def checkdir(path, create=False, mode=0o750):
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
raise IOError('{} is not a directory.'.format(path))
|
raise IOError('{} is not a directory.'.format(path))
|
||||||
if create:
|
if create:
|
||||||
os.makedirs(path, 0o750)
|
os.makedirs(path, mode)
|
||||||
else:
|
else:
|
||||||
raise IOError('Directory {} does not exist. Use create = '
|
raise IOError('Directory {} does not exist. Use create = '
|
||||||
'True in your configuration to automatically '
|
'True in your configuration to automatically '
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue