Use existing config inputs as is instead of globbing them

Paths containing glob characters, such as 'Photos [2020]', matched nothing and were skipped.
This commit is contained in:
Fuxino
2026-10-21 22:23:22 +02:00
parent 535f7a33fe
commit e8b088f13e
2 changed files with 12 additions and 2 deletions
+7
View File
@@ -45,6 +45,13 @@ def test_expand_inputs_glob(tmp_path: Path) -> None:
assert sorted(result) == [f'{tmp_path}/a.txt', f'{tmp_path}/b.txt']
def test_expand_inputs_glob_characters_in_name(tmp_path: Path) -> None:
(tmp_path / 'Photos [2020]').mkdir()
(tmp_path / 'Photos 2').mkdir()
assert sb._expand_inputs([f'{tmp_path}/Photos [2020]'], USER) == [f'{tmp_path}/Photos [2020]']
def test_expand_inputs_no_match(tmp_path: Path, caplog: pytest.LogCaptureFixture) -> None:
assert sb._expand_inputs([f'{tmp_path}/missing'], USER) == []
assert 'No file or directory matching input' in caplog.text