From bc954cf3a5e575ebb355648c8855e0b076440660 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sun, 6 Apr 2014 21:28:48 +0200 Subject: [PATCH] Fix severe bug with ~ in directory path --- vdirsyncer/storage/filesystem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vdirsyncer/storage/filesystem.py b/vdirsyncer/storage/filesystem.py index 2d069a8..d6e11d3 100644 --- a/vdirsyncer/storage/filesystem.py +++ b/vdirsyncer/storage/filesystem.py @@ -41,6 +41,7 @@ class FilesystemStorage(Storage): :param create: Create directories if they don't exist. ''' super(FilesystemStorage, self).__init__(**kwargs) + path = expand_path(path) if collection is not None: path = os.path.join(path, collection) if not os.path.isdir(path): @@ -54,7 +55,7 @@ class FilesystemStorage(Storage): 'create it, or create it ' 'yourself.'.format(path)) self.collection = collection - self.path = expand_path(path) + self.path = path self.encoding = encoding self.fileext = fileext