我想通过FTP镜像文件夹,如下所示:
wget --mirror --user=x --password=x ftp://ftp.site.com/folder/subfolder/更深
但我不想创建这样的目录 struct :
ftp.site.com -> folder -> subfolder -> 更深
我只想:
更深
And anything below it to be the resulting structure. It would also be acceptable for the contents of 更深
to wind up in the current directory as long as subdirectories are created for subdirectories of 更深
on the server.
I am aware of the -np
option, according to the documentation that just keeps it from following links to parent pages (a non-issue for the binary files I'm mirroring via FTP). I am also aware of the -nd
option, but this prevents creating any directory structure at all, even for subdirectories of 更深
.
我会考虑备选方案,只要它们是基于命令行的,很容易被用作Ubuntu包,并且很容易像WGET一样自动化.