feat: support watching symlinks in watchdogg.py

+ remove code for auto-adding ~/Home to root_dirs during populate
This commit is contained in:
geoffrey45
2023-01-24 16:30:17 +03:00
parent 29e61b31c3
commit df6609e7f4
6 changed files with 131 additions and 79 deletions
+5 -2
View File
@@ -30,8 +30,11 @@ def get_folder_tree():
root_dirs = db.get_root_dirs()
if req_dir == "$home" and root_dirs[0] == "$home":
req_dir = settings.USER_HOME_DIR
try:
if req_dir == "$home" and root_dirs[0] == "$home":
req_dir = settings.USER_HOME_DIR
except IndexError:
pass
if req_dir == "$home":
folders = [Path(f) for f in root_dirs]