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 回答