G
Guest
Hi,
I have a little application that watches a FTP folder. When a file is
uploaded, it takes that file and moves it to another folder on the same
server.
Here are a couple of lines from my C# app:
FileSystemWatcher watcher = new FileSystemWatcher();
watcher.Created += new FileSystemEventHandler(OnChanged);
My problem is that my folder watcher does not know when the file is finish
uploading. So if the file is 3mb my file watcher moves the file before it is
finished uploading, and the resulting new file in the new folder is only like
24k.
How can I "KNOW" when the file is finish uploading? Is there some type of
windows event I can watch?
Thanks,
Michael
I have a little application that watches a FTP folder. When a file is
uploaded, it takes that file and moves it to another folder on the same
server.
Here are a couple of lines from my C# app:
FileSystemWatcher watcher = new FileSystemWatcher();
watcher.Created += new FileSystemEventHandler(OnChanged);
My problem is that my folder watcher does not know when the file is finish
uploading. So if the file is 3mb my file watcher moves the file before it is
finished uploading, and the resulting new file in the new folder is only like
24k.
How can I "KNOW" when the file is finish uploading? Is there some type of
windows event I can watch?
Thanks,
Michael