@norvento/sftp-client
v1.0.1
Published
sftp-client
Downloads
18
Keywords
Readme
Norvento sftp client
Doc
Table of Contents
SFTPClient
SFTPClient.
Parameters
config
{configuration_sftp: {host: string, username: string, password: string, port: number}, remote_path: string, local_path: string} config properties
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
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
deleteFile
Deletes a file on the server
Parameters
remotePath
string the server file path
SFTPError
Extends Error
SFTPError