Skip to content

Commit de574cb

Browse files
fix: check if path is file before relinking
1 parent 3685713 commit de574cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tagstudio/core/utils/missing_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def match_missing_file_entry(self, match_entry: Entry) -> list[Path]:
4646
if part in GLOBAL_IGNORE_SET:
4747
skip = True
4848
break
49-
if skip:
49+
if skip or path.is_dir():
5050
continue
5151
if path.name == match_entry.path.name:
5252
new_path = Path(path).relative_to(self.library.library_dir)

0 commit comments

Comments
 (0)