【发布时间】:2023-03-09 11:49:01
【问题描述】:
您好,我正在使用以下代码,但它给出了错误
using (WebClient ftpClient = new WebClient())
{
ftpClient.Credentials = new System.Net.NetworkCredential("username", "password");
ftpClient.DownloadFile("ftp://path.com/Business Plan.docx", "D:\\Folder\test.docx");
}
但我收到错误路径中存在非法字符。
我不明白该怎么做。
【问题讨论】:
标签: ftp webclient credentials transfer