k2v-academy / K2View-Academy

Other
0 stars 0 forks source link

Running command on SFTP interface #1072

Closed AFOYQqhZ55j0hwYnWQTrk6rnwfNONSEeP6uheHC closed 3 months ago

AFOYQqhZ55j0hwYnWQTrk6rnwfNONSEeP6uheHC commented 3 months ago

Hi

We have an SFTP interface, on which we need additional operations, mainly "mv", in addition to file-read / file-write. However, the interface does not allow SSH connection, i.e. we cannot define an SSH interface with the same credentials.

How can we execute one of the commands supported by SFTP on the SFTP interface? What is the Java code for it?

tZajFGR0CidT8AVERBHw8puD36HY6oWViykmIIb commented 3 months ago

There are several built-in actors that support the commands: cp, ls, md, mv, rm. image

AFOYQqhZ55j0hwYnWQTrk6rnwfNONSEeP6uheHC commented 3 months ago

Please note: the "mv" actor does not work with "SFTP" interface and always fails with "no such file" exception (Fabric 7.2). Replacing it with "cp" and "rm" solves the issue.

tZajFGR0CidT8AVERBHw8puD36HY6oWViykmIIb commented 3 months ago

Please open a ticket for it, with the exception stack and all details, and it will be checked and fixed.