mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-08 07:10:28 +00:00
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:
|
||||
subfolder = folder / f
|
||||
if not subfolder.is_dir():
|
||||
if subfolder.exists(follow_symlinks=False):
|
||||
if subfolder.exists() or subfolder.is_symlink():
|
||||
raise OperationalException(
|
||||
f"File `{subfolder}` exists already and is not a directory. "
|
||||
"Freqtrade requires this to be a directory."
|
||||
|
||||
Reference in New Issue
Block a user