当前位置: 技术问答>linux和unix
用curl进行ftp下载
来源: 互联网 发布时间:2016-03-03
本文导语: 用curl的ftp命令,怎么得到ftp站点上的文件列表(文件及文件夹),,然后按目录结构全下载下来? | curl 沒有這個功能, 如果你是用libcurl開發自己的程序,需要自己處理. wget 可以, wget -h Recursive dow...
用curl的ftp命令,怎么得到ftp站点上的文件列表(文件及文件夹),,然后按目录结构全下载下来?
|
curl 沒有這個功能, 如果你是用libcurl開發自己的程序,需要自己處理.
wget 可以,
wget -h
Recursive download:
-r, --recursive specify recursive download.
-l, --level=NUMBER maximum recursion depth (inf or 0 for infinite).
--delete-after delete files locally after downloading them.
-k, --convert-links make links in downloaded HTML point to local files.
-K, --backup-converted before converting file X, back up as X.orig.
-m, --mirror shortcut for -N -r -l inf --no-remove-listing.
-p, --page-requisites get all images, etc. needed to display HTML page.
--strict-comments turn on strict (SGML) handling of HTML comments.
wget 可以,
wget -h
Recursive download:
-r, --recursive specify recursive download.
-l, --level=NUMBER maximum recursion depth (inf or 0 for infinite).
--delete-after delete files locally after downloading them.
-k, --convert-links make links in downloaded HTML point to local files.
-K, --backup-converted before converting file X, back up as X.orig.
-m, --mirror shortcut for -N -r -l inf --no-remove-listing.
-p, --page-requisites get all images, etc. needed to display HTML page.
--strict-comments turn on strict (SGML) handling of HTML comments.