Re: Resolved
As discussed at Stack Overflow:
Setting WinSCP ResumeSupport.State is ignored
Setting WinSCP ResumeSupport.State is ignored
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
TransferOptions
to SynchronizeDirectories
as shown below
SynchronizationResult synchronizationResult;
synchronizationResult =
session.SynchronizeDirectories(
SynchronizationMode.Local, sLocalFolder, "/", false, options: transferOptions);
ResumeSupport.State
. I am using the code below, but I still get an error message of: Transfer was successful, but temporary transfer file could not be renamed...
using (Session session = new Session())
{
// Connect
session.Open(sessionOptions);
TransferOptions transferOptions = new TransferOptions();
// Disable transfer with resume support/to temporary filename for all files
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;
MessageBox.Show(transferOptions.ResumeSupport.State.ToString());
// Synchronize files
SynchronizationResult synchronizationResult;
synchronizationResult =
session.SynchronizeDirectories(
SynchronizationMode.Local, sLocalFolder, "/", false);
// Throw on any error
synchronizationResult.Check();
session.Close();
}