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

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

LEGEND ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

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

 

Tested on LR 12.0.1 / Mac OS 12.6.1.

 

 

Bug Investigating
TOPICS
macOS , SDK , Windows

Views

676

Translate

Translate

Report

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

Votes

Translate

Translate
1 Comment
Adobe Employee ,
Nov 07, 2022 Nov 07, 2022

Copy link to clipboard

Copied

LATEST

Assign bug number

Rikk Flohr - Customer Advocacy: Adobe Photography Products
Status Investigating

Votes

Translate

Translate

Report

Report