mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-04 10:35:51 +00:00
Fix severe bug with ~ in directory path
This commit is contained in:
parent
94571a7aec
commit
bc954cf3a5
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue