SFTP PUT wild card xml files
Hello all.
I found example from https://winscp.net/eng/docs/script_locking_files_while_uploading to use for our uploads to remote server. However I need to send out two (or later possible more) type of xml files. Lets call them rabbit*.xml and bunny*.xml.
If its just this... works fine...
But when I try to add in that rabbit*.xml AND bunny*.xml I start getting different types of errors. Especially if there are no files in the local directories. So 1) how to make it 0 (not error) even if there are no files in the local directory and b) can I add in more than one file names here or should I do another
Under the first one?
Thanks!
I found example from https://winscp.net/eng/docs/script_locking_files_while_uploading to use for our uploads to remote server. However I need to send out two (or later possible more) type of xml files. Lets call them rabbit*.xml and bunny*.xml.
If its just this... works fine...
$session.PutFiles(($localPath + "*.xml"), ($remotePath + "*.*" + $suffix), $False, $transferOptions)
$transferResult = $session.PutFiles(($localPath + "bunny*.txt"), ($remotePath + "*.*" + $suffix), $False, $transferOptions)
Thanks!