Fix: _is_hidden_path now blocks .obsidian (broken carve-out)
The helper was hardcoding '.obsidian != .obsidian = False' so _is_hidden_path never returned True for .obsidian paths. The include_hidden parameter in list_vault was supposed to be the sole gate. Now ALL dot-prefixed paths are hidden by default; set include_hidden=True to peek at .obsidian config.
This commit is contained in:
parent
6192e22186
commit
517a79deea
1 changed files with 2 additions and 2 deletions
|
|
@ -51,8 +51,8 @@ def _compact_date(timestamp: float) -> str:
|
||||||
|
|
||||||
|
|
||||||
def _is_hidden_path(rel: Path) -> bool:
|
def _is_hidden_path(rel: Path) -> bool:
|
||||||
"""True if any path component is a dotfile/dotdir (excluding .obsidian)."""
|
"""True if any path component is a dotfile/dotdir (.obsidian, .git, .trash, etc.)."""
|
||||||
return any(part.startswith(".") and part != ".obsidian" for part in rel.parts)
|
return any(part.startswith(".") for part in rel.parts)
|
||||||
|
|
||||||
|
|
||||||
# ── Helpers ───────────────────────────────────────────────────────────────
|
# ── Helpers ───────────────────────────────────────────────────────────────
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue