1.0.1 • Published 4 years ago

@norvento/sftp-client v1.0.1

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
4 years ago

Norvento sftp client

Doc

Table of Contents

SFTPClient

SFTPClient.

Parameters
listTree

Get all the directory files

Parameters
  • dirPath String the path of the directory
get

Copy the file "remotepath" from the remote server to the "localpath" in the local server

Parameters
  • remotePath String , the remote file path
  • localPath String , the local destination path
getMultiple

Downloads the files form the sftp server to the local destination folder

Parameters
getAsBuffer

Gets the file from the server and returns it as a buffer

Parameters
  • remotePath string the remote server file path
putFile

Uploads a file to the server

Parameters
  • filePath string the local path to the file
  • remotePath string the server remote path
deleteFile

Deletes a file on the server

Parameters
  • remotePath string the server file path

SFTPError

Extends Error

SFTPError

Parameters
  • message string the error message
  • data any the error data
  • originalError Error the original error