如何使用lftp的mirror命令下载hide dot-directories

时间:2013-02-14 13:02:32

标签: linux lftp

我不知道如何使用lftp的镜像命令下载隐藏点目录

我只能使用get命令获取一个点文件,并立即用ls -a命令列出隐藏文件。

可以配置吗?

2 个答案:

答案 0 :(得分:3)

lftp -u用户名,密码hostname.com -e“set ftp:list-options -a”

答案 1 :(得分:0)

从手册:

http://linux.die.net/man/1/lftp

   ftp:list-options (string)
          sets options which are always appended to LIST command. 
          It can be useful to set this to `-a' if server does not
          show dot (hidden) files by default.  Default is empty.