Socket
Socket
Sign inDemoInstall

@norvento/sftp-client

Package Overview
Dependencies
191
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @norvento/sftp-client

sftp-client


Version published
Weekly downloads
3
Maintainers
2
Install size
10.3 MB
Created
Weekly downloads
 

Readme

Source

Norvento sftp client

Doc

Table of Contents
  • SFTPClient
  • SFTPError
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
  • 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

FAQs

Last updated on 18 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc