mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-29 09:46:50 +01:00
Someone who has removed Lightroom and its catalog may have only the backups Lightroom wrote (Backups/<date>/<name>.zip) and the photos. library.importLightroom / inspectLightroom and File > Import Lightroom Catalog now take the zip: the .lrcat entry is streamed (stored or deflated, ZIP64 included) into a private folder in the library's Interop/ (the system temp folder when the library isn't on disk), checked against its size and CRC-32, read, and removed on success, error and cancel alike. The zip is only read. Paths relative to the catalog resolve from where it was before the backup. Open Library recognises Backups/ (newest backup) and its dated folders even with the catalog gone. Collections are keyed on the catalog's Adobe_storeProviderID, which every backup keeps, so a backup of an imported catalog no longer adds each collection twice; path keys from earlier imports are still matched. Checked on a real catalog (2,740 photos, 96 collections) and its four backups from Lightroom 7 to Classic 13: each zip imports like its unpacked catalog, leaves nothing behind and is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>