Open luxiaoyong opened 9 months ago
Thanks. Could you just confirm the version you are using?
I appreciate your attention to my problem. My version is 1.9.1,and we have temporarily avoided this problem by adding /.
This is a known limitation. The code says:
The only case that we don't support is when source is a file and dest is a dir without a finishing / (in that case we cannot determine remotely whether it is a file or a directory).
The code could not know before initiating the transfer if /tmp
is an existing directory. There are no handshake where this could have been negotiated in 2 steps.
The recommendation is to add a final /
when this is a remote directory.
Thank you. I see.
clustershell is Excellent! Thanks for sharing this great project. When using the TreeMode to copy a file to remote node and the dest is a directory which is similar to /tmp, I encounter a problem. My command:
clush -d -o-q -w compute -b -S --copy /home/tt.txt --dest /tmp
This command cause a error, I can use the following command to avoid this error.clush -d -o-q -w compute -b -S --copy /home/tt.txt --dest /tmp/
In more serious cases, the directory on the remote node will be replaced with the copied file, and no error will be reported.The debug log below: