1

理解できないwgetについて質問があります。

次のコマンドを使用して、FTPサーバーのコンテンツ全体をダウンロードしています(これは正常に機能します)

wget -m -P c:\ ftp://user:password@xxx.xxx.xxx.xxx

問題は、これによりc:\に「xxx.xxx.xxx.xxx」というフォルダが作成され、FTPサーバーのコンテンツ全体がこのディレクトリに配置されることです。

このディレクトリを作成して、FTPディレクトリ構造全体をc:\に直接配置することは望ましくありません。

これをwgetで指定するにはどうすればよいですか?

前もって感謝します!

4

2 に答える 2

3

を使用し-nH (--no-host-directories)ます。

于 2013-01-09T20:04:35.310 に答える
0
-P prefix
--directory-prefix=prefix
Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree. The default is . (the current directory)

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

于 2013-01-09T19:59:04.567 に答える