Allow the data_directory to contain colons (fully qualified paths)
This commit is contained in:
parent
73d2ef5bbf
commit
009c0dc678
1 changed files with 1 additions and 1 deletions
|
@ -1099,7 +1099,7 @@ class PhotoDB(PDBAlbumMixin, PDBBookmarkMixin, PDBPhotoMixin, PDBTagMixin, PDBUs
|
||||||
data_directory = constants.DEFAULT_DATADIR
|
data_directory = constants.DEFAULT_DATADIR
|
||||||
|
|
||||||
# DATA DIR PREP
|
# DATA DIR PREP
|
||||||
data_directory = helpers.normalize_filepath(data_directory, allowed='/\\')
|
data_directory = helpers.normalize_filepath(data_directory, allowed=':/\\')
|
||||||
self.data_directory = pathclass.Path(data_directory)
|
self.data_directory = pathclass.Path(data_directory)
|
||||||
os.makedirs(self.data_directory.absolute_path, exist_ok=True)
|
os.makedirs(self.data_directory.absolute_path, exist_ok=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue