Lightroom SDK: LrFileUtils.makeFileWritable is not reliable on Windows.

  • 1
  • Problem
  • Updated 6 years ago
My code:

s, m = app:executeCommand( "ATTRIB", "-R", { path } ) -- original code
--s = LrFileUtils.makeFileWritable( path ) - trial code

I was trying out the Lr version, which was working fine, but then I got an error that wouldn't go away ("can not make file writable..."). The solution was to revert back to ATTRIB command for making writable - error gone now.

I confess - I dunno if reloading the plugin is what made the error go away or reverting the command (since I did both), but I thought you might want to know... - problem is not yet known to be repeatable.

How does LrFileUtils accomplish making files writable?
How does LrFileUtils accomplish making files writable?
How does LrFileUtils accomplish making files writable?

Thanks,
Rob
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes

Posted 6 years ago

  • 1

Be the first to post a reply!