Socket
Socket
Sign inDemoInstall

ftpsync

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftpsync - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

15

lib/ftpsync.js

@@ -31,3 +31,3 @@ // Design Notes

'ignore': config.ignore || {},
'connections': 1,
'connections': config.connections || 1,
'ltimeOffset': 0,

@@ -57,3 +57,2 @@ 'rtimeOffset': 0

});
console.log('- FTP client started')
console.log();

@@ -165,3 +164,3 @@

if (sync.mkdir.length == 0) { callback(null, 'no mkdirs'); return; }
async.mapLimit(sync.mkdir, settings.connections, utils.mkdir, function (err) {
async.mapLimit(sync.mkdir, 1, utils.mkdir, function (err) {
if (err) {

@@ -199,3 +198,3 @@ callback(err, 'mkdirs failed');

if (sync.remove.length == 0) { callback(null, 'no removals'); return; }
async.mapLimit(sync.remove, settings.connections, utils.remove, function (err) {
async.mapLimit(sync.remove, 1, utils.remove, function (err) {
if (err) {

@@ -211,3 +210,3 @@ callback(err, 'removals failed');

if (sync.rmdir.length == 0) { callback(null, 'no rmdirs'); return; }
async.mapLimit(sync.rmdir, settings.connections, utils.rmdir, function (err) {
async.mapLimit(sync.rmdir, 1, utils.rmdir, function (err) {
if (err) {

@@ -393,2 +392,8 @@ callback(err, 'rmdirs failed');

upload: function(file, callback) {
var ftp = new jsftp({
host: settings.host,
port: settings.port,
user: settings.user,
pass: settings.pass
});
var local = settings.local + file;

@@ -395,0 +400,0 @@ var remote = settings.remote + file;

{
"name": "ftpsync",
"version": "0.1.2",
"version": "0.1.3",
"description": "Intelligent file syncronization over FTP",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/evanplaice/node-ftpsync",

@@ -6,3 +6,3 @@ An FTP synchronization app for NodeJS based on [jsftp](https://npmjs.org/package/jsftp). With an emphasis on speed and simplicity ftpsync aims to fulfull your one-click file deployment needs.

**Warning: This app is currently in the early alpha stages of development. Feel free to try it out and contribute fixes/feedback but it would be wise to wait a few releases before using it in a production environment.**
**Notice: The core functionality to push files to a remote server is now fully implemented. Until the timestamp comparison logic is worked out, updates (ie overwriting files) are determined solely by comparing file sizes. This is not ftp-deploy. This application will delete files and directories on the remote server to match the local machine. Use this application in production at your own risk.**

@@ -113,3 +113,3 @@ Usage

#### ftpsync.remote[]
#### ftpsync.remote{}

@@ -210,2 +210,17 @@ The file and directory listings for the remote host.

Roadmap
-------
### Short Term
- Implement timestamp file comparisons on updates
- Improve error handling
- Improve logging
- Implement glob matching on ignore files
### Long Term
- Pull functionality
- Two-way sync
### Pipe Dream
- Comprehensive testing - Requires a non-sucky ftp server implementation written in node.
License

@@ -212,0 +227,0 @@ -------

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