Skip to content

Commit ef16ffa

Browse files
fix: conflicts
1 parent 5a5813c commit ef16ffa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tagstudio/core/utils/missing_files.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def match_missing_file_entry(self, match_entry: Entry) -> list[Path]:
4141
4242
Works if files were just moved to different subfolders and don't have duplicate names.
4343
"""
44+
4445
assert self.library.library_dir
4546
matches: list[Path] = []
4647

@@ -50,6 +51,8 @@ def match_missing_file_entry(self, match_entry: Entry) -> list[Path]:
5051
flags=PATH_GLOB_FLAGS,
5152
exclude=ignore_patterns,
5253
):
54+
if path.is_dir():
55+
continue
5356
if path.name == match_entry.path.name:
5457
new_path = Path(path).relative_to(self.library.library_dir)
5558
matches.append(new_path)

0 commit comments

Comments
 (0)