1.Introduction
Description: An extension to use SSHv2 with JSch
Latest Version: 1.1
Released: 2021-02-28T18:30:00Z
Last Updated: 2024-02-26T18:30:00Z
Permissions: android.permission.INTERNET,android.permission.READ_EXTERNAL_STORAGE,android.permission.WRITE_EXTERNAL_STORAGE
2.Blocks
3.Documentation
Events
GotOutput | Event raised after getting response from ShellexitStatus | number outputResponse | text errorResponse | text |
GotError | Event invoked when any error occurserrorMessage | text |
Connected | Event indicating that connection to FTP server was successful and you are now logged in |
Disconnected | Event indicating that you are now logged out and disconnected from server |
OnDownloadProgress | Event raised when downloading progress changesprogress | number |
OnUploadProgress | Event raised when uploading progress changesprogress | number |
GotUploadResult | Event invoked after getting previous upload resultsuccess | boolean response | text |
GotDownloadResult | Event invoked after getting previous download resultsuccess | boolean response | text |
AfterChangeWorkingDirectory | Event invoked after 'ChangeWorkingDirectory' method with result and new working dirsuccess | boolean newWorkingDir | text |
GotFileList | Event invoked after getting file list from serverfileNames | list |
GotDirList | Event invoked after getting dir list from serverdirNames | list |
AfterDelete | Event raised after 'Delete' method with resultsuccess | boolean |
Methods
RunCommand | Executes given command in SSH Shellcommand | text |
Connect | Tries to connect and login to the SFTP server using provided username and passwordhost | text username | text password | text port | number strictHostCheck | boolean |
Disconnect | Tries to close the connection to the SFTP server |
HomeDir | Returns Home path |
CurrentWorkingDir | Returns current working directory |
IsConnected | Returns whether connection is open or not |
ChangeWorkingDirectory | Changes current working dir and raises 'AfterChangeWorkingDirectory' event with resulttoDir | text |
UploadFile | Uploads file on the server from given file path Use absolute file path localFileName | text remoteFileName | text |
DownloadFile | Downloads file from server to given file path Use absolute file path remoteFileName | text localFileName | text |
ListFiles | Tries to get files listdir | text |
ListDirs | Tries to get dir listdir | text |
CreateDir | Creates a new dir on serverremoteDirName | text |
Delete | Tries to delete given dir/file from the serverremotePath | text isFile | boolean |
Properties
4. Purchase Extension
Extension's Price: $6 or INR 350
I am thankful to @TIMAI2 Sir for beta testing the extension.
Hope it helps!