Hi,
I would like to use FileSystemWatcher to monitor a folder
and act on any file that goes into that folder. I
managed to get the sample code from the .NET Framework
SDK on FileSystemWatcher working.
The event that I would like to handle and act on the file
is the Created event. However I noticed that when a
large file is copied into that folder, a Created event is
fired, followed by a series of Changed events.
I don't want to act on the file until the file has
finished copying. What is the correct way of doing this?
Many thanks.
Best regards,
Jude.
|