From 722665747e98b11d96abf96d573862938422c331 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Wed, 23 Jul 2014 12:24:33 +0200 Subject: [PATCH] Actually use mode --- vdirsyncer/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdirsyncer/utils/__init__.py b/vdirsyncer/utils/__init__.py index cfc3f59..937c439 100644 --- a/vdirsyncer/utils/__init__.py +++ b/vdirsyncer/utils/__init__.py @@ -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 '