Monitoring files
Hi,
I have to monitor a folder for new files. I use System.IO.FileSystemWatcher to do that.
The problem is that the files are downloading over there and I have to find out when they are completely downloaded. The System.IO.FileSystemWatcher fires an event when the file is first created and 2 others, of the same type after that. But I can't get the moment when the files are completely downloaded.
If you have any idea...
Mircea.
shunmuga pandianPosted Nov 11, 2005, 4:27 AM
It is not possible to find out whether the file has been completely downloaded or not. A workaround for this would be to drop another file (eg..with a different custom extension - .myext ) and trigger the event of the file drop. Then we can find out that the earlier file is completed. The latest triggered event can delete the custom file and do necessary operations on the appropriate downloaded file.
Dillon MorePosted Nov 10, 2005, 7:43 PM