[英]Does lftp's get -O command create the directory?
Does the get
command in lftp
with option -O
create the specified directory if it does not exist or does it return an error? lftp
中带有选项-O
的get
命令是否创建指定目录(如果不存在)或是否返回错误?
eg: get -O home/thisDirectoryDoesNotExist -e data.txt
例如:
get -O home/thisDirectoryDoesNotExist -e data.txt
I was not able to find this information in the manual https://linux.die.net/man/1/lftp .我无法在手册https://linux.die.net/man/1/lftp中找到此信息。
As @stark suggested in their comment, I tried it myself and got the following error message:正如@stark 在他们的评论中所建议的那样,我自己尝试并收到以下错误消息:
get: data.txt: home/thisDirectoryDoesNotExist: No such file or directory
So get
does not create the specified directory if it does not exist.所以
get
不创建指定目录如果不存在。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.