Notity when file changed

Is there any way in JUCE of getting a notification or callback when a particular file has changed? In this case, it’s an Xml file that I’m working with.

1 Like

Does it requires to be synchronous?
Otherwise you could just poll and check getLastModificationTime in a background thread (but i guess you already considered that).

I hadn’t thought of this. Not a bad idea if, as it seems, Juce doesn’t have this feature built in.

It would be nice if there were a little listener you could attach to the File class though. Is this a realistic feature request?

@LiamG It seems an old request and a good question (with maybe a solution).

1 Like