Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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
Some ssh user

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