prikryl2 wrote:
...but I do not see any advantage of doing copy/delete instead of move.
...the advantage is that you don't lose owner/group, like is mentioned in the Docs. I didn't test this, I only went with what the docs said. They listed "Reasons not to do that"...so I came up with an alternative. I will gladly test this, providing Steps to Reproduce it both ways, the current behavior & the proposed behavior.
prikryl2 wrote:
Actually I see only disadvantages.
...could you list them?...I was trying to get around the current disadvantages (as mentioned in the Docs), I didn't think of any disadvantages to my way.
prikryl2 wrote:
Anyway, SFTP does not have copy operation, so there's no point discussing it.
...are there any docs, besides complicated RFCs, that list what each protocol can/can't do? Seems like "copy" would be an obvious operation it could do (why would someone invent a protocol without it???).
But in any case, my SFTP has SSH also, so it (anything the protocol can't do) could be done in an SSH session. Maybe you could support a new protocol "SSH/SFTP"?...(the implied combination of both at the same time)...selecting that as the "protocol" would tell WinSCP right away, that to do the "cool things" (which means anything that protocol {SFTP} can't do by itself {Copy}) it can immediately use SSH (it would start both sessions right at the beginning of WinSCP). Right now when I choose SFTP as the protocol, WinSCP limits all the functions it can do to what's in the SFTP protocol, ditto for SCP, never thinking to "break free" & use a separate SSH shell to do the things SFTP or SCP can't do. I think this is a really good idea, please ask if I wasn't clear enough in explaining what I mean. It should also not be much coding, most of this is already in WinSCP, just not connected logically. WinSCP can do SFTP & SCP & it can do "dumb SSH", in the sense of a non-TTY Terminal, but even that can do copy/move/delete/etc...things other protocols might not support. So why not combine those?...with "SSH/SFTP" & "SSH/SCP" protocol choices, I could give WinSCP permission to "break free" of any protocol limitations, by spawning its own SSH session to do the "dirty work". I can already spawn an SSH session & type the commands to do the dirty work, why not teach WinSCP how to do it itself?...WinSCP is a GUI, not a way to drop to the command line. Do you welcome help in coding?
prikryl2 wrote:
There's no way to find out path to remote temp folder.
...it could be user-specified. But also both Windows & Linux support the "set" command, by parsing the output, you could determine where the temp folder is.
prikryl2 wrote:
Also the temp folder may be on completelly different filesystem than target folder, so moving the temp file may not be possible.
...I don't understand this, mainly cuz I don't understand all the limitations of each protocol...but in SSH, I can move/copy from any "filesystem" to another.
Also, is "prikryl2" really "prikryl"?