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

P: SDK: folder:getPhotos() fails on device folders created by cloud sync

LEGEND ,
Nov 06, 2022 Nov 06, 2022

The method folder:getPhotos() always returns the empty array on device folders created by cloud sync.  To reproduce:

 

1. Install this script as "lrmobile-folder-bug.lua" in the Scripts folder and restart LR:

 

local LrDialogs = import "LrDialogs"
local LrTasks = import "LrTasks"
local catalog = import "LrApplication".activeCatalog ()
LrTasks.startAsyncTask (function ()
    local folder = catalog:getActiveSources ()[1]
    LrDialogs.message (string.format ("%d photos in %s", 
        #folder:getPhotos (), folder:getPath ()))
    end)

 

 

2. In the Folder panel, select a device folder created by cloud sync.

 

3. Do the menu command Scripts > lrmobile-folder-bug.lua and observe this output:

johnrellis_0-1667771644286.pngexpand image

 

Tested on LR 12.0.1 / Mac OS 12.6.1.

 

 

Bug Investigating
TOPICS
macOS , SDK , Windows
1.2K
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 , Nov 07, 2022 Nov 07, 2022

Assign bug number

Status Investigating
Translate
1 Comment
Adobe Employee ,
Nov 07, 2022 Nov 07, 2022
LATEST

Assign bug number

Rikk Flohr: Adobe Photography Org
Status Investigating
Translate
Report