Topic "Extend delete to be economical"

Author Message
[View user's profile]

Joined: 2005-05-10
Posts: 2
Hello all,

I've been using WinSCP for a while now and enjoy it a lot and, have a request/suggestion.

I found when I delete a folder which contains many files and folders and to varying depths, it takes forever to delete that 'folder structure'. In these cases I open a terminal window and voila, I type command line instruction to recursively delete the contained first level folder contents. This option is instantaneous. It deletes the stated folder instantaneously, irrespective of depth.

Here's my thinking; would it be possible for the regular GUI delete from the right-click pop-up menu, to have an option to delete a folder's content using the regular delete command (rm -r folder/) for each folder/file found in the containing folder. Currently it seems it is deleting each folder/file individually, on at a time.

If this was possible the delete in the GUI would be 99% faster.

Kind regards
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25310
Location: Prague, Czechia
You probably refer to SFTP protocol. This protocol does not have "recursive delete" command. What you did requires opening separate shell session, similar to the one used by SCP protocol. So it has numerous disadvantages:
  • Requires second authentication. This can be annoyng if you need to type the password again. And takes quite time over slow connections.
  • User may not be allowed to open two connections at the same time.
  • Requires unix environment on the other end (for the "rm" command), while SFTP is platform-indepenent.
  • And many other... Smile

In other words if you know that it works for you and above limitations does not limit you, use it. But I cannot make it default behaviour. To make it easier, setup custom command "rm -r !".

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License