shaqian / flutter_ssh

SSH and SFTP client for Flutter
https://pub.dartlang.org/packages/ssh
MIT License
117 stars 83 forks source link

Support for SSH_FXP_REALPATH #20

Open drakkan opened 4 years ago

drakkan commented 4 years ago

It seems that this library does not allow to query the remote path via sftp. So there are hacks such as this one:

https://github.com/niklas-8/RemoteFiles/blob/master/lib/services/connection_methods.dart#L87

to get the remote path. The problem here is that execute send an SSH exec request. SFTP only servers generally does not accept exec requests but only sftp requests.

In Jsch I think the method to use is realpath

See https://github.com/niklas-8/RemoteFiles/issues/15