0

I try to download data using this command.

wget -r --no-parent http://myserver/username/data/

This leaves me with three folders on my server, namely: myserver/username/data/

How do I download only data without the whole path of folders?

user2300940
  • 121
  • 1
  • 4

1 Answers1

0

The manual says you could use the cut-dirs and no-host-directories options, as in

wget -r --no-parent -nH --cut-dirs=1 http://myserver/username/data/ 

and you could even use the --no-directories, or -nd.

Gerard H. Pille
  • 2,569
  • 1
  • 13
  • 11