user1352544
user1352544

Reputation: 53

put options in FTP client

Does the put command in FTP, "put local-file [remote-file ]", have some way to check if a file with the same name already exists in the specified directory on the remote machine so it doesn't store the local-file into the remote machine? If not, how does one go about doing that? Thanks in advance!

Upvotes: 2

Views: 2920

Answers (1)

Levon
Levon

Reputation: 143047

You may want to take a look at the the ftp man page, in particular the sunique or runique command options. I haven't used these options myself, but they may help you accomplish what you are asking about.

Upvotes: 1

Related Questions