jason.foo
jason.foo

Reputation: 341

how to download hidden dot-directories with lftp's mirror command

I don't know how to download hidden dot-directories with lftp's mirror command

I just can get a dot-file with get command, and list the hide files with ls -a command for now.

Can this be configured?

Upvotes: 3

Views: 4238

Answers (2)

Yuriys S
Yuriys S

Reputation: 41

lftp -u username,password hostname.com -e "set ftp:list-options -a"

mirror

Upvotes: 4

lbiegaj
lbiegaj

Reputation: 340

From the manual:

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.

Upvotes: 1

Related Questions