开发者

WebClient DownloadFileAsync File Exists

开发者 https://www.devze.com 2023-01-06 20:31 出处:网络
Is there a recommended method for using DownloadFileAsyc and determining if the file exists? It seems that the only way I can tell is on the DownloadCompleted event the error property has a 404 error

Is there a recommended method for using DownloadFileAsyc and determining if the file exists? It seems that the only way I can tell is on the DownloadCompleted event the error property has a 404 error in it, and the there's a开发者_如何学运维 file created that is 0 bytes.

It would be nice to have a more deterministic method.


Chris T had the right answer. (or at least good enough for me).

0

精彩评论

暂无评论...
验证码 换一张
取 消