【发布时间】:2017-09-03 06:56:39
【问题描述】:
我遇到了 FluentFTP 库的 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 的错误吗?还是我错过了什么?
【问题讨论】:
-
未来的读者应该在图书馆的问题跟踪器上查看交叉帖子,地址为 github.com/robinrodricks/FluentFTP/issues/70。根本原因是 FTP 服务器上的权限问题。