Can WinSCP use more SSH commands with SFTP?

Advertisement

Some ssh user
Joined:
Posts:
6
Location:
Kraków, Poland

Can WinSCP use more SSH commands with SFTP?

Hi,

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Can WinSCP use more SSH commands with SFTP?

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:
https://winscp.net/eng/docs/custom_commands#delete

Reply with quote

Advertisement

You can post new topics in this forum