Topic "Rename existing file using Pattern"

Author Message
Ricoman
[View user's profile]

Joined: 2008-11-19
Posts: 9
It would be great if the user could enter a pattern or regex that could be used to automatically rename downloaded or uploaded files if the destination file already exists.

For example, the pattern
{name}_new.{ext}

would cause hello.txt to be renamed to hello_new.txt if the destination file already exists.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
OK, if more people ask for that Smile
_________________
Martin Prikryl
Ricoman
[View user's profile]

Joined: 2008-11-19
Posts: 9
Thanks for replying.

I think this would make the program a lot easier for routine transfers and synchronizing folders etc.

But one feature that I think would be even more useful is to rename the existing file (to "file.ext.old", for example, so that it is not overwritten, but the new file is copied and takes the place of the old file.
I.e. the feature described here: https://winscp.net/forum/viewtopic.php?t=6221
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Ricoman wrote:
But one feature that I think would be even more useful is to rename the existing file (to "file.ext.old", for example, so that it is not overwritten, but the new file is copied and takes the place of the old file.
I.e. the feature described here: https://winscp.net/forum/viewtopic.php?t=6221

I have realized that with some limitation you can achieve this by setting remote recycle bin to ".". But this works with SFTP only.
This request has been added to tracker.
_________________
Martin Prikryl
ozzytheking
[View user's profile]

Joined: 2008-10-06
Posts: 35
Location: TURKEY
Ricoman wrote:
It would be great if the user could enter a pattern or regex that could be used to automatically rename downloaded or uploaded files if the destination file already exists.

For example, the pattern
{name}_new.{ext}

would cause hello.txt to be renamed to hello_new.txt if the destination file already exists.


I like this feature, i hope future versions will have this Smile
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