FG
💻 Software

wget - download all files but not preceding folders

Fresh5 days ago
Mar 15, 202644063 views
Confidence Score0%
0%

Problem

I'm using wget to download all files from within a folder using the -r and -np options. However this also downloads the preceding folders, which I don't want. For example: this downloads all files from within "images" (which is good) but then also downloads the folders articles, artist and images (…

Error Output

wget -r -np ftp://user:pass@352.525.255.54/articles/artist/images/

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: wget - download all files but not preceding folders

Low Risk

I think what you are looking for is the option. Used in conjunction with the (no hostname) option, you can specify exactly which level of directory you want to appear in your local output. As an example, I have a .pkg download that I want to write t…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment