Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ftps

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftps - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

8

index.js

@@ -83,3 +83,9 @@ var spawn = require('child_process').spawn,

FTP.prototype.cat = function (path) { return this.raw('cat ' + path); };
FTP.prototype.put = function (path) { return this.raw('put ' + path); };
FTP.prototype.put = function (localPath, remotePath) {
if (!localPath)
return this;
if (!remotePath)
return this.raw('put '+localPath);
return this.raw('put '+localPath+' -o '+remotePath
};
FTP.prototype.addFile = FTP.prototype.put;

@@ -86,0 +92,0 @@ FTP.prototype.get = function (remotePath, localPath) {

2

package.json
{
"name": "ftps",
"version": "0.1.7",
"version": "0.1.8",
"author": {

@@ -5,0 +5,0 @@ "name" : "Sébastien Chopin" ,

@@ -42,4 +42,4 @@ node-ftps

ftps.cat(pathToRemoteFiles)
ftps.put(pathToLocalFile) // alias: addFile
ftps.get(pathToRemoteFile, [pathToLocalFile]) // download remote file and save to local path (if not given, use same name as remote file), alias : getFile
ftps.put(pathToLocalFile, [pathToRemoteFile]) // alias: addFile
ftps.get(pathToRemoteFile, [pathToLocalFile]) // download remote file and save to local path (if not given, use same name as remote file), alias: getFile
ftps.mv(from, to) // alias move

@@ -49,3 +49,3 @@ ftps.rm(file1, file2, ...) // alias remove

Execute a command on the remote server :
Execute a command on the remote server:
<pre>ftps.raw('ls -l')</pre>

@@ -62,5 +62,5 @@ To see all available commands -> http://lftp.yar.ru/lftp-man.html

For information, if somes commands fails, it will don't stop the next commands, example :
For information, if somes commands fails, it will don't stop the next commands, example:
<pre>ftps.cd('non-existing-dir/').affFile('./test.txt').exec(console.log);
// Will add file on ~/ and give : { error: 'cd: L\'accès a échoué : 550 /nian: No such file or directory\n',
// Will add file on ~/ and give: { error: 'cd: L\'accès a échoué : 550 /nian: No such file or directory\n',
data: '' }

@@ -67,0 +67,0 @@ // So...be cautious :)</pre>

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc