Skip to main content
Adobe Photoshop Family

Champion

 • 

5K Messages

 • 

91.7K Points

Sun, May 13, 2018 3:12 AM

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

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

Responses

No Responses!