Maverick
Maverick

Reputation: 2760

java scp ssh file copy to remote dir

I am using ssh scp to send file from local dir to a remote dir using 0755 mode. I want to know whether this will overwrite the existing file with the same name or do I have to put a check for that?! I am using this library for that purpose. http://www.ganymed.ethz.ch/ssh2/ suggestions needed.

Upvotes: 0

Views: 1751

Answers (1)

Femi
Femi

Reputation: 64700

It will overwrite the existing file.

Upvotes: 1

Related Questions