C# FileSystemWatcher-Und FTP -

Ich monitor Dateien gelöscht auf ftp via filesystem-watcher, dann wechseln Sie dir. Jetzt habe ich trigger die Kopie aus der Veranstaltung erstellen der filesystem-watcher, aber offensichtlich im Fall von ftp erstellen ist nur ein stub-Datei und die Daten kommt und füllt die Datei-uploads bis zum Abschluss. Jemand eine elegante Lösung dafür, oder muss ich tun, was ich glaube, ich habe zu tun

1 wait till last access time is about n ms in past before I copy
2 throw a control file in there to state that that file is done being copied, then delete control file
3 pound the crap out of it
Schreibe einen Kommentar