我遇到FluentFTP库的UploadFiles
方法问题。这是我的代码:调用UploadFiles时出现“无法找到文件”错误
var count = _client.UploadFiles(filesPaths, remotePath, true, true);
foreach(var path in filesPaths)
{
AddLog(string.Format("Uploaded File: {0}", path));
}
并执行UploadFiles
后,它抛出一个异常说找不到文件。我发现当我使用remotePath = "/uploads"
我有这个问题,但是当我将remotePath设置为"/"
时,该方法上传文件没有问题。我检查了用户权限,他可以做任何事情。
我不知道可能是什么问题。我在GitHub中阅读了源代码,但我没有发现任何奇怪的东西。
这是FluentFTP的错误吗?或者我错过了什么?
未来的读者应该看到在库的问题跟踪交叉后,在https://github.com/robinrodricks/FluentFTP/issues/70。根本原因是FTP服务器上的权限问题。 –