简体   繁体   中英

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?

eg: 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 .

As @stark suggested in their comment, I tried it myself and got the following error message:

get: data.txt: home/thisDirectoryDoesNotExist: No such file or directory

So get does not create the specified directory if it does not exist.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM