IETF-SSH archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
SFTP needs copying functionality
One other thing.
I think the SFTP protocol is seriously missing a way to copy data on the server without having to download it to the client and upload it back to the server.
At the very least, I think there needs to be a copy request that will make a straightforward copy of file A to file B, with some very basic flags such as whether to overwrite when file B is already present.
A close second requirement is for an ability to concatenate files.
We can go at this in multiple ways. One would be to provide separate requests for each type of copy or append that we can envision.
However, how about we provide a way to instruct the server to copy data between two open file handles?
This could be a request such as the following:
SSH_FXP_COPY
uint32 request-id
string read-from-handle
string write-to-handle
uint64 read-from-offset
uint64 read-from-length
uint64 write-to-offset
That's all that is needed.
Now the client can open the source file, open or create the target file, and copy data without having to download it in a gazillion separate packets and upload it back to the server.
How does that sound?
Best regards!
denis
Home |
Main Index |
Thread Index |
Old Index