Topic "Can WinSCP use more SSH commands with SFTP?"

Author Message
Some ssh user
[View user's profile]

Joined: 2014-09-02
Posts: 1
Location: Kraków, Poland

There are some features in WinSCP which can be replaced by recursive SSH commands. As far as I know till now there is only files duplication.

For example (often used by me):
1. Remove directory: instead of programmed recursion, use `rm -r "$DIR"`
2. Calculate directory size - `du -sh "$DIR"`

With many small files this can significantly reduce processing time.

What do you think?

Thanks for your attention Wink
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
WinSCP uses cp shell command to duplicate remote files only, because there's no native equivalent in common SFTP servers.

But it won't use it for other operations, as SFTP access does not guarantee a shell access, so WinSCP cannot rely on it.

You can always setup a custom command:

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