Skip to content

moribaleta/ionic-native-sftp-leapfroggr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ionic-native-sftp-leapfroggr

cordova plugin for sftp works on both:

  • IOS
  • Android

Installation

  • IOS

  • Android

    compile group: 'com.jcraft', name: 'jsch', version: '0.1.54'
    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.31"
    

USAGE

  • configure sftp
this.sftp_provider.configureSFTP({
        host: <host>, 
      username: <username>, 
      password: <password>, 
      destination_folder: <destination folder> 
    }).then(() => {
      console.log("configured")
    })
  • upload
this.sftp_provider.upload({filename, filepath}).then(() => {
        observer.next("complete")
        observer.complete()
      }).catch(error => {
        observer.error(error)
      })

Future Feature

  • directory operation
  • list
  • delete files
  • download files