mirror of
https://github.com/derrod/legendary.git
synced 2026-04-28 12:13:22 +00:00
The `case_insensitive_file_search` function in `legendary/lfs/wine_helpers.py` did not correctly handle cases where the parent directory of the provided path does not exist. This could lead to the function returning an invalid path, which could cause errors in other parts of the application. This commit fixes the issue by adding a check to ensure the parent directory exists before proceeding with the file search. If the parent directory does not exist, the function will now return `None`. A new test case has been added to verify this fix. |
||
|---|---|---|
| .. | ||
| api | ||
| downloader | ||
| lfs | ||
| models | ||
| utils | ||
| __init__.py | ||
| cli.py | ||
| core.py | ||