Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path

import structlog
from wcmatch import pathlib
from wcmatch import glob, pathlib

from tagstudio.core.library.alchemy.library import Library
from tagstudio.core.library.alchemy.models import Entry
Expand Down Expand Up @@ -54,7 +54,7 @@ def match_unlinked_file_entry(self, match_entry: Entry) -> list[Path]:
# NOTE: ignore_to_glob() is needed for wcmatch, not ripgrep.
ignore_patterns = ignore_to_glob(Ignore.get_patterns(library_dir))
for path in pathlib.Path(str(library_dir)).glob(
f"***/{match_entry.path.name}",
patterns=f"***/{glob.escape(match_entry.path.name)}",
flags=PATH_GLOB_FLAGS,
exclude=ignore_patterns,
):
Expand Down
Loading