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

  • 2
  • Problem
  • Updated 1 week 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 "\":

catalog:getPath()
folder:getPath()
photo:getRawMetadata ("path")
developPresetFolder:getPath()
LrPathUtils.getStandardFilePath()
_PLUGIN.path
Photo of John R. Ellis

John R. Ellis, Champion

  • 3372 Posts
  • 844 Reply Likes

Posted 1 week ago

  • 2

Be the first to post a reply!