Topic ""Empty trash" command"

Author Message
unalignedcoder

Guest


It's great to have a "trash" feature, but of course we want to occasionally quickly empty that "trash".

What would be a quick custom command to do that?

I believe this removes everything including the directory itself I'm right-clicking on:

Code:
test "!?Do you really want to delete ?no!" == "yes" && rm -rf !&


...but it would be great if I didn't have to delete and re-create the directory (since WinSCP doesn't automatically create it, when I delete a file and a /tmp directory is not present).

Wish-thinking, it would also be great to have a conditional command where the "Empty trash" appears only when I right click on my trash folder.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
Your duplicate post on Super User:
https://superuser.com/q/1172792/213663
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