Reputation: 399
I am using a get
function via WinSCP script to download new files from an FTP server but need to exclude a folder that has spaces. This is what I have but it's throwing an error:
get -filemask=|/Images/DO NOT USE/ -neweronly -resumesupport=on -resume "/FTP_FILES" "D:\FTP_Downloads"
Error:
Can't get attributes of file "NOT'.
Could not retrieve file information
/NOT can't be listed
My guess is it's hanging on the fact that DO NOT USE
folder has spaces. Unfortunately I have no access to rename this folder, and just simply want to ignore it when downloading. I tried adding quotations, didn't do anything, folder still was downloading.
How do I execute this properly?
Upvotes: 0
Views: 922
Reputation: 202272
*
or by using an absolute path.-filemask="|*/Images/DO NOT USE/"
Upvotes: 1