Hello, when I use the putfiles function (to record a directory using the mask property "*. *;> 2020-05-01 | * /" I always get the same error, I attach my code
"Error transferring file 'C: \\ projects \\ test.txt.txt'. \ R \ nCopying files to remote side failed. \ R \ nFilename invalid"}
string LocalDirectory = currentDir + @ "\ *";
transferResult = session.PutFiles (LocalDirectory, RemoteName, false, transferOptions);
Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
How can I make "FileMask" contain a non-recursive option and make the date greater than or equal to a given date.
A file is modified on Monday, Tuesday and Wednesday. I would like to know how it can be done to have the three versions in the remote directory.
We will be able to implement a differential or incremental copy system.
Is it possible to keep multiple file versions in directory sync?
Is it possible to sync a directory and not internal directories to sync?
In other words, synchronization is not recursive
How can I make a mask so that it saves the files from a certain date and that it does not go through the subdirectories.
Session.SynchronizeDirectoriesto have WinSCP automatically upload all new and changed files:
Session.PutFilesfor each of your files.
Session.PutFileToDirectory, which is more convenient to use.