Add PermissionError handling to vault indexer and implement recursive descendant expansion in sidebar tree filter with auto-expand for matching directories

This commit is contained in:
2026-03-22 20:26:05 -04:00
parent d311a09527
commit 29e6e1c052
2 changed files with 52 additions and 3 deletions
+3
View File
@@ -218,6 +218,9 @@ def _scan_vault(vault_name: str, vault_path: str) -> Dict[str, Any]:
for tag in tags:
tag_counts[tag] = tag_counts.get(tag, 0) + 1
except PermissionError as e:
logger.warning(f"Permission denied, skipping {fpath}: {e}")
continue
except Exception as e:
logger.error(f"Error indexing {fpath}: {e}")
continue