Download 使用WGET指定本地目录

Download 使用WGET指定本地目录,download,directory,local,wget,Download,Directory,Local,Wget,我有一个关于wget的问题,我似乎想不通 我使用以下命令下载FTP服务器的全部内容(工作正常) 问题是,这会在c:\中创建一个名为“xxx.xxx.xxx.xxx”的文件夹,并将整个FTP服务器内容放置在此目录中 我不希望它创建这个目录,而只是将整个FTP目录结构直接放在c:\中 我如何使用wget指定这一点 提前谢谢你 -P prefix --directory-prefix=prefix Set directory prefix to prefix. The directory prefix

我有一个关于wget的问题,我似乎想不通

我使用以下命令下载FTP服务器的全部内容(工作正常)

问题是,这会在c:\中创建一个名为“xxx.xxx.xxx.xxx”的文件夹,并将整个FTP服务器内容放置在此目录中

我不希望它创建这个目录,而只是将整个FTP目录结构直接放在c:\中

我如何使用wget指定这一点

提前谢谢你

-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)

使用
-nH(--无主机目录)

您好,谢谢您的回复。是的,我读过这篇文章,但我仍然无法让它停止创建具有IP地址的文件夹。我希望它将FTP目录直接下载到C的根目录中:\
-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)