I'm using WinSCP to synchronize a remote FTP directory to a local one, some files have leading space in their names, those files are not found for WinSCP with error
Error transferring file '/xml/ file.mask.some.file.xml.gz'
Copying files from remote side failed.
File not found
The command I'm using is:
C:\tools\winscp.com /command ^
"option batch on" ^
"option confirm off" ^
"open ftp://user:password@server -certificate=""" ^
"synchronize local ""D:\FTP\Data\PM"" ""/xml/"" -filemask=*file.mask.*.xml.gz>200D;" ^
"exit"
How can I ignore this leading space when getting these files?