k2view-academy / K2View-Academy

Other
15 stars 24 forks source link

Running command on SFTP interface #1072

Closed dotants closed 1 month ago

dotants commented 1 month 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?

natalylic commented 1 month ago

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

dotants commented 1 month 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.

natalylic commented 1 month ago

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