FileSystemWatcher & FTP
-
Anyone have any experience with used the FileSystemWatcher in conjunction with FTP? Trying to processing incoming files at are being dropped into a given directory via FTP, but don't want to start processing until the FTP process has *completed* writing the file to disk. Any ideas? The NotifyFilters don't seem to allow for the "close" on the file. TIA. ~Mike Stanbrook
-
Anyone have any experience with used the FileSystemWatcher in conjunction with FTP? Trying to processing incoming files at are being dropped into a given directory via FTP, but don't want to start processing until the FTP process has *completed* writing the file to disk. Any ideas? The NotifyFilters don't seem to allow for the "close" on the file. TIA. ~Mike Stanbrook
Ok, I've gotten around the problem by attempting to open exclusively, and sleep until successful. However, for large files, I still get 3+ "Changed" events thrown.. anyone have a good scheme for blocking/ignoring the extraneous events ? TIA. ~Mike Stanbrook