RhetTbull / osxphotos

Python app to work with pictures and associated metadata from Apple Photos on macOS. Also includes a package to provide programmatic access to the Photos library, pictures, and metadata.
MIT License
1.99k stars 94 forks source link

osxphotos export error when'd destination folder becomes empty when using --ramdb --cleanup --update [low priority] #1665

Open oPromessa opened 3 weeks ago

oPromessa commented 3 weeks ago

Before submitting a bug report, please ensure you are running the most recent version of osxphotos and that the bug is reproducible on the latest version

osxphotos, version 0.68.5
Python 3.11.5 (main, Aug 24 2023, 15:23:30) [Clang 14.0.0 (clang-1400.0.29.202)]
macOS 12.7.6, x86_64

Describe the bug

To Reproduce

Expected behavior No crash. Either:

Screenshots N/A

Desktop (please complete the following information):

osxphotos, version 0.68.5
Python 3.11.5 (main, Aug 24 2023, 15:23:30) [Clang 14.0.0 (clang-1400.0.29.202)]
macOS 12.7.6, x86_64

Additional context N/A

RhetTbull commented 3 weeks ago

Interesting -- I think the real issue is that osxphotos deleted the export directory with --cleanup if it was empty (nothing exported), which it should not do.

oPromessa commented 3 weeks ago

Yes. And possibly is a cleaner and easier solution yes.