Closed mathause closed 7 months ago
There are cases where files can be matched but not parsed. E.g.:
from filefinder import FileFinder ff = FileFinder("", "{cat}_{cat}", test_paths=["a_b"]) ff.find_files()
This was always the case but might be worse after #57. We should allow setting the behaviour in this case. Such as:
ff.find_files(on_parse_error="raise") ff.find_files(on_parse_error="warn") ff.find_files(on_parse_error="skip")
https://github.com/mathause/filefinder/blob/32e1210064bdb30e70b6a3eb66b27bf52a7e8115/filefinder/_filefinder.py#L144-L145
Check the on_missing argument in https://github.com/mathause/filefinder/blob/main/filefinder/filters.py
on_missing
There are cases where files can be matched but not parsed. E.g.:
This was always the case but might be worse after #57. We should allow setting the behaviour in this case. Such as:
https://github.com/mathause/filefinder/blob/32e1210064bdb30e70b6a3eb66b27bf52a7e8115/filefinder/_filefinder.py#L144-L145