feat: fix hidden files whitelist logic to require ALL hidden path components be whitelisted, add vault config to single file indexing, and improve reindex button feedback with save phase indication
This commit is contained in:
+6
-5
@@ -26,10 +26,11 @@ def should_include_path(rel_parts: Tuple[str, ...], vault_config: Dict[str, Any]
|
||||
# Include all hidden files/folders
|
||||
return True
|
||||
|
||||
# Check if any hidden part is in the whitelist
|
||||
# Check if ALL hidden parts are in the whitelist
|
||||
# If any hidden part is NOT in the whitelist, exclude the path
|
||||
for hidden_part in hidden_parts:
|
||||
if hidden_part in hidden_whitelist:
|
||||
return True
|
||||
if hidden_part not in hidden_whitelist:
|
||||
return False
|
||||
|
||||
# Not in whitelist and includeHidden is False
|
||||
return False
|
||||
# All hidden parts are in the whitelist
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user