开发者

Wget Not Downloading Every Folder

开发者 https://www.devze.com 2023-03-03 15:58 出处:网络
Hey, I have bash script running a wget command to get a directory: wget -r -nH --cut-dirs=5 \"ftp://$USER:$PASS@stumpyinc.com/subdomains/cydia/httpdocs/theme/themes/$theme_root\"

Hey, I have bash script running a wget command to get a directory:

wget -r -nH --cut-dirs=5 "ftp://$USER:$PASS@stumpyinc.com/subdomains/cydia/httpdocs/theme/themes/$theme_root"

And what it's supposed to do is download a folder structure that looks like this:

$theme_root/Library/Themes/$theme_name.theme/Icons

For some reason, it wont download any folder that's inside of the $theme_name.theme folder. There's also a UIImages folder in there that's not showing up, although files that are in that folder are being downloaded. Does anyone 开发者_开发技巧notice anything that I might have done wrong? Thanks in advance!

EDIT if you add --level=inf it works perfectly!


Wget's default directory retrieval depth is 5 directories as per the wget manual. If the files you are trying to get are deeper than that from your starting position, it will not go down there. You can try giving a larger --level option or as your edit --level=inf.

0

精彩评论

暂无评论...
验证码 换一张
取 消