Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

LEGEND ,
Jun 04, 2025 Jun 04, 2025

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=d1hpg6i4wwz25x4u... 

 

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:

johnrellis_6-1749066418832.png

 

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

johnrellis_1-1749072486407.png

 

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).

 

Bug Investigating
TOPICS
macOS , SDK , Windows
104
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Pinned Reply

Adobe Employee , Jun 05, 2025 Jun 05, 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.

Status Investigating
Translate
1 Comment
Adobe Employee ,
Jun 05, 2025 Jun 05, 2025
LATEST

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

Status Investigating
Translate
Report