SFTPClient: An extension to use SSHv2 [$6 or INR 350]

1.Introduction

Description: An extension to use SSHv2 with JSch
Latest Version: 1
Released:  March 2,2021
Last Updated:  March 2,2021
Permissions: android.permission.INTERNET,android.permission.READ_EXTERNAL_STORAGE,android.permission.WRITE_EXTERNAL_STORAGE

                                       2.Blocks

image

image

image

image

image

3.Documentation

AfterChangeWorkingDirectory

Event invoked after ‘ChangeWorkingDirectory’ method with result and new working dir
Params
success | boolean newWorkingDir | text

AfterDelete

Event raised after ‘Delete’ method with result
Params
success | boolean

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

GotDirList

Event invoked after getting dir list from server
Params
dirNames | list

GotDownloadResult

Event invoked after getting previous download result
Params
success | boolean response | text

GotError

Event invoked when any error occurs
Params
errorMessage | text

GotFileList

Event invoked after getting file list from server
Params
fileNames | list

GotUploadResult

Event invoked after getting previous upload result
Params
success | boolean response | text

OnDownloadProgress

Event raised when downloading progress changes
Params
progress | number

OnUploadProgress

Event raised when uploading progress changes
Params
progress | number

ChangeWorkingDirectory

Changes current working dir and raises ‘AfterChangeWorkingDirectory’ event with result
Params
toDir | text

Connect

Tries to connect and login to the SFTP server using provided username and password
Params
host | text username | text password | text port | number strictHostCheck | boolean

CreateDir

Creates a new dir on server
Params
remoteDirName | text

CurrentWorkingDir

Returns current working directory Return type : text

Delete

Tries to delete given dir/file from the server
Params
remotePath | text isFile | boolean

Disconnect

Tries to close the connection to the SFTP server

DownloadFile

Downloads file from server to given file path Use absolute file path
Params
remoteFileName | text localFileName | text

HomeDir

Returns Home path Return type : text

IsConnected

Returns whether connection is open or not Return type : boolean

ListDirs

Tries to get dir list
Params
dir | text

ListFiles

Tries to get files list
Params
dir | text

UploadFile

Uploads file on the server from given file path Use absolute file path
Params
localFileName | text remoteFileName | text

4.Buy

Extension’s Price: $6 or INR 350 
Let me know if you are interested by dropping an email at vknow360gmail.com or via  Telegram :slightly_smiling_face:

Want to donate: Great! Kindly email me :heart:

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments