rob_cole_2221866's profile

4.5K Messages

 • 

76.3K Points

Wed, Jan 9, 2013 1:33 AM

Closed

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

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
No Responses!