mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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.
|
:param create: Create directories if they don't exist.
|
||||||
'''
|
'''
|
||||||
super(FilesystemStorage, self).__init__(**kwargs)
|
super(FilesystemStorage, self).__init__(**kwargs)
|
||||||
|
path = expand_path(path)
|
||||||
if collection is not None:
|
if collection is not None:
|
||||||
path = os.path.join(path, collection)
|
path = os.path.join(path, collection)
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
|
|
@ -54,7 +55,7 @@ class FilesystemStorage(Storage):
|
||||||
'create it, or create it '
|
'create it, or create it '
|
||||||
'yourself.'.format(path))
|
'yourself.'.format(path))
|
||||||
self.collection = collection
|
self.collection = collection
|
||||||
self.path = expand_path(path)
|
self.path = path
|
||||||
self.encoding = encoding
|
self.encoding = encoding
|
||||||
self.fileext = fileext
|
self.fileext = fileext
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue