chore: manually check for symlink
This commit is contained in:
@@ -82,7 +82,7 @@ def create_userdata_dir(directory: str, create_dir: bool = False) -> Path:
|
|||||||
for f in sub_dirs:
|
for f in sub_dirs:
|
||||||
subfolder = folder / f
|
subfolder = folder / f
|
||||||
if not subfolder.is_dir():
|
if not subfolder.is_dir():
|
||||||
if subfolder.exists(follow_symlinks=False):
|
if subfolder.exists() or subfolder.is_symlink():
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
f"File `{subfolder}` exists already and is not a directory. "
|
f"File `{subfolder}` exists already and is not a directory. "
|
||||||
"Freqtrade requires this to be a directory."
|
"Freqtrade requires this to be a directory."
|
||||||
|
|||||||
Reference in New Issue
Block a user