使用这个语句上传时可以上传,但是只能上传到根目录,不能上传到指定的文件夹//client.UploadFile(@"" + path + "", "/" + pName + "");
使用这个上传时,报错,不能上传client.UploadFile(@"" + path + "", ftpPath, FtpRemoteExists.Overwrite,true);
public FtpStatus UploadFile(string localPath, string remotePath, FtpRemoteExists existsMode = FtpRemoteExists.Overwrite, bool createRemoteDir = false, FtpVerify verifyOptions = FtpVerify.None, Action progress = null);
110,534
社区成员
642,576
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧