TransferOperationResult.Check Returns without Error while PutFiles still Transferring files.
Hi, First of all, WinSCP has made work life so much easier! So thank you.
These questions apply to VB.NET windows forms application.
Two questions please.
1.
2. We had to change the default value
Appreciate the assistance.
These questions apply to VB.NET windows forms application.
Two questions please.
1.
transferResult.Check()
returns from PutFiles
without error but the files are still being copied to the external server. This is causing the job to appear as completed while the files are still being transferred to the external server. What transfer options, if any, can be modified to prevent this behavior? Source code below.
Dim transOptions As New TransferOptions transOptions.TransferMode = TransferMode.Binary transOptions.OverwriteMode = OverwriteMode.Overwrite transOptions.PreserveTimestamp = False transOptions.ResumeSupport.State = TransferResumeSupportState.Off Dim transferResult As TransferOperationResult = sess.PutFiles(dmzPath, "/" + serverDetails.WebServerFolderPath, False, transOptions) transferResult.Check()
TransferOptions.PreserveTimestamp
due to errors we were receiving about timestamp permissions. It stopped the errors but not really clear what this property does? Also, how would TransferOptions PreserveTimestamp
affect files being downloaded to an IIS server being displayed on website? I know you are probably not IIS experts. But do you know if PreserveTimestamp = true
would make IIS think the file is not a new file and therefore use the cached version?
Appreciate the assistance.