SFTP: Some operations are unnecessarily slow (del/calc dir)
When you try to delete a directory, WinSCP seems to enumerate all files & directories & delete them 1-at-a-time. Now, this may be the "only way" if the user only has SFTP access (it may be a protocol limitation). But I have SSH/SFTP access, so removing a dir takes like 1 second with...
...but could take awhile, since WinSCP enumerates & then deletes all files/dirs 1-at-a-time. We don't know the protocol limitations...could you specify how this is handled in different protocols?...& look for faster methods in each?
Ditto for Right-click -> Properties -> Calculate...it enumerates all files, adding up the size. But a simple...
...or...
...will tell the size of a dir, in a few seconds, for those that have full-SSH access.
I understand some people have limited, bare bones, SFTP access...no SSH, no command line, but for those that do, it would help to speed up these commands.
Maybe you could auto-detect if it "will work" on a server (try & let it fail...or something else)...or add a checkbox to the sessions options ("My SFTP account can do SSH commands too!").
rm -r <dir>
Ditto for Right-click -> Properties -> Calculate...it enumerates all files, adding up the size. But a simple...
du <dir>
du -h <dir>
I understand some people have limited, bare bones, SFTP access...no SSH, no command line, but for those that do, it would help to speed up these commands.
Maybe you could auto-detect if it "will work" on a server (try & let it fail...or something else)...or add a checkbox to the sessions options ("My SFTP account can do SSH commands too!").