mget 没有这样的文件或目录
我已连接到我们的其中一台文件服务器,并尝试将文件夹下拉(通过 ftp 和 mget)到本地目录。 50% 的 mget
命令可以成功运行,直到它获取到服务器上绝对存在的 JAR 文件。它给了我以下错误:
local: dist/MyProgram.jar remote: dist/MyProgram.jar
local: dist/MyProgram.jar: No such file or directory
我正在使用的命令是一个简单的 mget
ftp> prompt
ftp> mget *
我绝对位于正确的目录中并且绝对具有牢固的连接。设置 prompt
标志以防止我在每次获取时收到提示。有什么想法吗?
I'm connected to one of our file servers and am trying to pull down (via ftp
and mget
) a folder to a local directory. 50% of the mget
command works successfully until it gets to a JAR file that is absolutely there on the server. It gives me the following error:
local: dist/MyProgram.jar remote: dist/MyProgram.jar
local: dist/MyProgram.jar: No such file or directory
The command I am using is a simpl mget
ftp> prompt
ftp> mget *
I am absolutely in the right directory and absolutely have a solid connection. Setting the prompt
flag to prevent me from being prompted on each get. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是因为
mget
的行为不递归。我认为它会递归到我的目录树并按原样复制所有内容。您需要在项目的每个级别运行它。它将dist/MyProgram.jar
视为文件名。That's because
mget
doesn't behave recursively. I thought it would recurse down my directory tree and copy everything over as-is. You need to run it at every level of your project. It was treatingdist/MyProgram.jar
as a filename.