bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wget with Download directory containing spaces


From: michel . kempeneers
Subject: Wget with Download directory containing spaces
Date: Thu, 12 Dec 2019 13:25:22 +0100 (CET)

Hi, 

I'm trying to download a bunch of URLs I grouped together in file "input.txt". 
Downloading them to sub-folder "Images" works alright with the following 
command. 

wget -nv -a log.txt -P .\Images\ -i input.txt 

The -P switch even creates the target directory if it doesn't exist. 
But when I try to download my files to 

.\Other Images\ 

I run into trouble. 
I.e. Wget's -P switch now creates (and downloads to) target directory "Other". 
Obviously, the space is the culprit. 

However, when I next try to work around the issue by double-quoting the target 
directory, which is a normal solution in many command line applications 

w get -nv -a log.txt -P " .\Other Images\ " -i input.txt 

Wget doesn't recognize this target directory and throws a "missing URL" error. 
Apparently, the -P switch can't stand double-quotes... 
Is there a solution for this? 
Should another character than a double-quote be used to preserve spaces? Or is 
there another workaround for this problem? 


M. 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]