feat(services/sftp): support copy and rename for sftp#2263
feat(services/sftp): support copy and rename for sftp#2263Xuanwo merged 5 commits intoapache:mainfrom silver-ymz:feat/sftp-copy-rename
Conversation
Signed-off-by: silver-ymz <yinmingzhuo@gmail.com>
Signed-off-by: silver-ymz <yinmingzhuo@gmail.com>
|
Seems that it is possible to rename to a different path if it is a POSIX_RENAME operation. Is there any way to detect its capability? 🤔 |
|
Sorry for misunderstanding the document. We can rename to a different path as long as ensuring the destionation dir exists. The unsupported operation is rename to the dir of different mount point. We can pass the But |
I think it isn't a big problem. cc @Xuanwo |
|
There is a new bug about In https://github.com/apache/incubator-opendal/actions/runs/4976970726/jobs/8905529556, test I'm debuging it now. |
|
After some research, I think we may need to give up the sftp copy feature. There are 3 reasons:
|
Is the reason you removed the content-length check? |
Signed-off-by: silver-ymz <yinmingzhuo@gmail.com>
I think it's because I set |
|
😓At this time, it passed all tests. Maybe we can open an issue first, and fix it in another PR. |
|
The problem exists in
|
We can open a new issue. You may revert some relevate code and we could do this content-length job in another PR. |
No, we can't call async functions in build. And the ability of sftp server should be told by users. I prefer to return not supported instead. |
Signed-off-by: silver-ymz <yinmingzhuo@gmail.com>
Signed-off-by: silver-ymz <yinmingzhuo@gmail.com>
@silver-ymz Auxiliary contains all supported extensions, so you could expose a new function in openssh-sftp-client easily. |
I'll try it in openssh-sftp-client. But we can't still detect it in |
May I ask why we need to detect this? Can we return |
They are different things: To make
|
This is the way to deal with it in the current implementation. So should we add copy to |
We can add a new config called |
Hi, @silver-ymz, would like to add this in next PR? This PR is good enough to get merged. |
Ok. I think it's fine. |
No description provided.