Rename existing file using Pattern

Advertisement

Ricoman
Joined:
Posts:
9

Rename existing file using Pattern

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,285
Location:
Prague, Czechia

Re: Rename existing file using Pattern

OK, if more people ask for that :-)
_________________
Martin Prikryl

Reply with quote

Ricoman
Joined:
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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,285
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

Reply with quote

ozzytheking
Joined:
Posts:
35
Location:
TURKEY

Re: Rename existing file using Pattern

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 :)

Reply with quote E-mail

Advertisement

You can post new topics in this forum