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 pathlocalPath
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 fileremotePath
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 messagedata
any the error dataoriginalError
Error the original error