mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +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):
|
||||
raise IOError('{} is not a directory.'.format(path))
|
||||
if create:
|
||||
os.makedirs(path, 0o750)
|
||||
os.makedirs(path, mode)
|
||||
else:
|
||||
raise IOError('Directory {} does not exist. Use create = '
|
||||
'True in your configuration to automatically '
|
||||
|
|
|
|||
Loading…
Reference in a new issue