Notifications
Clear all

[Closed] File lock woes

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
 lo1

None of those methods lock any files. Something else is locking your file.

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