Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3870

ActionOnExistingFiles.OverwriteAll usage -- am I doing it wrong?

$
0
0

Hi Rebex Team,

I am trying out Rebex.Sftp (2020 R2) version 5.0.7450.0 to upload files. I specified to overwrite files, like this:

sftp.Upload("\\mydomain.com\Temp*.trg", "/home/",
TraversalMode.MatchFilesShallow,
TransferMethod.Copy,
ActionOnExistingFiles.OverwriteAll);

But I am getting this error:

ERROR: SFTP transfer error uploading '\mydomain.com\Temp\GLCHO0000C202006239381.trg' to '/home/GLCHO0000C202006239381.trg' - Rebex.Net.SftpException: File with the same name already exists ('/home/GLCHO0000C202006239381.trg').

Am I missing something? I can post more of my code if needed.

Thank you,
Rob


Viewing all articles
Browse latest Browse all 3870

Trending Articles