Skip to content

Commit

Permalink
feat: support sftp
Browse files Browse the repository at this point in the history
  • Loading branch information
reruin committed Jun 15, 2020
1 parent 0908e1c commit 571f284
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/drive.sftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

const { PassThrough } = require('stream')

const SFTP = require('ssh2-sftp-client');
const SFTPClient = require('ssh2-sftp-client');

const { URL } = require("url")

const CLOSED = Symbol('client_closed')

class FTP {
class SFTP {
constructor() {
this.name = 'sftp'
this.label = 'SFTP'
Expand All @@ -32,7 +32,7 @@ class FTP {
return { client : clientMap[key] , path:pathname }
}

let client = new SFTP();
let client = new SFTPClient();

let options = {
host:hostname
Expand Down Expand Up @@ -147,4 +147,4 @@ class FTP {
}


module.exports = FTP
module.exports = SFTP

0 comments on commit 571f284

Please sign in to comment.