J
John Talli
System.IO.FileSystemWatcher
When a user copies and pastes a file from one directory to a directory that is monitored
by the FileSystemWatcher, the FileSystemWatcher executes twice, once for a CREATED file
event and once for a CHANGED file event.
I think I understand why. First the monitored file is created and then contents are
inserted into it. (Although the file datetime remains the same.)
This is not what I require. If there is a new file created in a monitored directoy, I
only want TRUELY CREATED event raised, not the default of CREATED event raised & CHANGED
event raised.
Is there anyway I can turn-off the second event (CHANGED event raise) ?
Thanks
When a user copies and pastes a file from one directory to a directory that is monitored
by the FileSystemWatcher, the FileSystemWatcher executes twice, once for a CREATED file
event and once for a CHANGED file event.
I think I understand why. First the monitored file is created and then contents are
inserted into it. (Although the file datetime remains the same.)
This is not what I require. If there is a new file created in a monitored directoy, I
only want TRUELY CREATED event raised, not the default of CREATED event raised & CHANGED
event raised.
Is there anyway I can turn-off the second event (CHANGED event raise) ?
Thanks