Trouble with filesystemwatcher
Posted on 2014-01-16
I'm creating a filewatcher, and even though I set the filter to a specific file extension, the rename event is triggered when the file is changed 'from' that extension that I'm looking for.
Do I have to capture this in my rename event too?
I'm watching for .filter "*.ABC"
If I rename file.ABC to file.DEF, the rename event is fired.
I only want to process the file if a file is renamed 'to' *.ABC
I know it's possible to simply check that file extension in the rename event, but I wasn't sure if I was overlooking some other setting...