Skip to main content
johnrellis
Legend
June 4, 2025

P:SDK: Invalid LrFolders representing "Imported Folders" pseudo-folder created by sync with LR Cloud

  • June 4, 2025
  • 1 reply
  • 192 views

When Sync with LR Cloud downloads and imports photos from the cloud, it creates a pseudo-volume and psuedo-folder in the Folders panel representing the contents of the "Mobile Downloads.lrdata" folder containing the imported photos (e.g John's MacBook Pro > Imported Photos).  When a plugin tries to access the pseudo-folder, the methods catalog:getFolders() and catalog:getActiveSources() return invalid LrFolder objects.

 

To reproduce on LR 14.3.1 / Mac OS 15.5:

 

1. Download and unzip this catalog:

https://www.dropbox.com/scl/fi/plzlyaxuw7os6coeb0d7n/folder-bug.2025-6-04.zip?rlkey=d1hpg6i4wwz25x4unpv01lvt0&dl=0 

 

2. Copy the file "folder-bug.lua" from the catalog folder to the LR Scripts folder and start LR.

 

3. In the Folders panel, select the Imported Photos pseudo-folder under the pseudo-volume John's Macbook Pro:

 

4. Do the menu command Scripts > folder-bug. Observe the following incorrect output:

 

The LrFolders representing what's displayed as "Imported Photos" in the Folders panel are very confused:

 

- catalog:getFolders ()[2] doesn't have the right name, its children are nil rather than the empty array {}, and its path is a bogus, non-existent file path.

 

- catalog:getActiveSources ()[1] doesn't have the right name, its children are nil rather than the empty array {} (but it's path is correct).

 

1 reply

brianmatiash
Community Manager
June 5, 2025

Thank you for reporting this, John. I've created a bug to track this issue internally. This thread will be updated with further developments.

Software Quality Engineer, Lightroom