Lightroom SDK: preset:getFile() incorrectly returns path with forward slashes on Windows

  • 2
  • Problem
  • Updated 2 years ago
  • (Edited)
In LR 7.3.1, preset:getFile() incorrectly returns paths containing forward slashes (/) rather than backslashes (\) as directory separators, breaking existing plugins. For example:

While Windows paths using "/" are accepted by Windows APIs, at least some calls in the LR SDK fail on them, e.g. LrFileUtils.move():

Note that all other calls in the LR SDK return paths with "\":

photo:getRawMetadata ("path")
Photo of John R. Ellis

John R. Ellis, Champion

  • 4835 Posts
  • 1334 Reply Likes

Posted 2 years ago

  • 2

Be the first to post a reply!