Topic "Rename existing file instead of new on overwrite"

Author Message
henry3
[View user's profile]

Joined: 2016-03-20
Posts: 4
Is there a way to rename the existing file on overwrite instead of renaming the file being uploaded ? I am using the remote recycle bin feature, but it would nice if the existing file could remain in the same directory, but be renamed using the timestamp.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
No, WinSCP does not support this.
henry3
[View user's profile]

Joined: 2016-03-20
Posts: 4
Is there a technical reason not to do that, or no one else has a use for it ? Does the remote recycle bin just use a remote move command before the upload ?
henry3
[View user's profile]

Joined: 2016-03-20
Posts: 4
I was thinking about how remote recycle bin works, and I put a . in the location settings, tested it, and it created the backup in the same directory.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
henry3 wrote:
Is there a technical reason not to do that, or no one else has a use for it ?

No there's no technical reason. It's just not implemented because there was no demand.

Quote:
Does the remote recycle bin just use a remote move command before the upload ?

Yes.

Quote:
I was thinking about how remote recycle bin works, and I put a . in the location settings, tested it, and it created the backup in the same directory.

You are right. That works. I didn't realize that WinSCP can handle relative paths in the recycle bin path.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License