C# FileSystemWatcher And FTP

后端 未结 6 1424
南旧
南旧 2021-02-02 03:48

I monitor files that are dropped on a ftp via filesystem watcher then move to another dir. Now I trigger the copy off the create event of the filesystem watcher but obviously i

6条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 04:15

    Wait until you can exclusively open the file- I wouldn't go as far to say that it is a nice solution, but probably the safest strategy in the circumstances.

提交回复
热议问题