Turn off preserve timestamp when upload file(s) #1655
Replies: 1 comment
-
My fault. Problem was I was using a \ instead of / in access the external server's folder. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on an SSIS package to automate file transfer to an external SFTP server.
I am getting the error below. However when I connect to the external SFTP server using Winscp and upload a file, by default, I get an error saying "Upload of file 'tsestfile.txt' was successful, but error occurred while setting the permissions and/or timestamp". In Winscp when I turn the preserve timestamp option and perform the upload it does not produce the error. I am wondering if there is such way to turn off any setting of permissions and/or timestamp in the external server after an upload when using Renci.sshnet.
Please advise.
Thanks so much.
Rick
ERROR: Failed processing testfile.txt: Renci.SshNet.Common.SshException: Failed to open file.
at Renci.SshNet.Sftp.SftpSession.RequestOpen(String path, Flags flags, Boolean nullOnError)
at Renci.SshNet.SftpClient.InternalUploadFile(Stream input, String path, Flags flags, SftpUploadAsyncResult asyncResult, Action
1 uploadCallback) at Renci.SshNet.SftpClient.UploadFile(Stream input, String path, Action
1 uploadCallback)at ST_4df0e50535c24ba6ab02bd4f79f023ae.ScriptMain.Main() in C:\Users\RShaw\AppData\Local\Temp\Vsta\e12b9d10eeba4481acb25309590a8fda\ScriptMain.cs:line 259
Beta Was this translation helpful? Give feedback.
All reactions