-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement #1774: Add option to bypass checking for .osxphotos_expor…
…t.db in the export folder. (#1775) * enhancement-1774: first adjustments. Missing adjustment to find_first_file_in_branch. * enhancement-1774: Adjustment to find_first_file_in_branch to return list of first file found. * * Reusing option --ignore-exportdb * Removed exclusivity of options --update and --ignore-exportdb * Search for files logic will also **not be done** in case options --exportdb or --no-exportdb are used. * Adjusted option definition. Maybe a bit lengthy 😞 ! * Renamed function find_files_in_branch into find_first_file_in_branch and revised logic to return on first occurrence found, when --ignore-exportdb is not active. * When --update is not used, added warnings when --ignore-exportdb is in use to make it compatible with interactive questions. * Addressing topics: - find_first_file_in_branch should now return either None or a single str with the file path instead of a list or empty list. - Change other_db_files to other_db_file and the subsequent warning that lists out the files to now say "file" vs "files". * adjusted test "test_export_update_parent_folder" and "test_export_update_child_folder" * * Error in Tests: [Fatal Python error: Segmentation fault](https://github.com/RhetTbull/osxphotos/actions/runs/12612637331/job/35149593923#step:9:261) * Unable to re-run Tests up-stream :( * Adjusting some long lines and forcing commit!
- Loading branch information
Showing
2 changed files
with
34 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters