Check if a directory exists before making it
option batch on option confirm off lcd C:\my_local_files mkdir 123456 put .\123456\orderconf_1234.xml ./123456/orderconf_1234.xml exit
123456
already exists, WinSCP gives the error:
The thing is that I don't know whether this folder exists or not on the FTP server, and I don't wan't WINSCP to raise an error if I try to make a folder that already exists. What is the best approach to "fix" this?Error creating folder '123456'.
Can't create directory: File exists
Can I with WinSCP say that "only do
mkdir my_folder
if my_folder
doesn't exist" on the remote system?