Notifications
Clear all
[Closed] File lock woes
Nov 22, 2015 10:54 am
I’m trying to check when a file was last modified, and then perform an action if the date has changed. the problem is that getFileModDate , GetLastWriteTime and FileInfo.LastWriteTime all lock the file as soon as they’re run so no other apps can modify it until Max is restarted. Do I have to ‘close’ them somehow after use?
2 Replies
Nov 22, 2015 10:54 am
None of those methods lock any files. Something else is locking your file.
Nov 22, 2015 10:54 am
Yep looks like you’re right. Turns out I had an ‘openFile’ that hadn’t been closed properly.
I guess that’s what I get for working on script at 4am