Skip to content

kbrown333/cs-recursive-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

Need an easy way to programatically sync 2 folders in javascript? Let cs-recursive-sync do the hard-lifting for you! Simply pass in the source folder and the sync folder as parameters and our algorithm will do the rest.

##Requirements

Before building this project you will need the following resources:

  • npm

Installation

npm install cs-recursive-sync --save

Usage

There are 2 functions exposed in this module, 'beginSync' and 'compare'. Both functions return promises.

Syncronize Directories

var sync = require('cs-recursive-sync');
sync.beginSync(source_dir_path, sync_dir_path)
	.then((rslt) => { //do something else });

Compare Directories

var sync = require('cs-recursive-sync');
sync.compareDirectories(source_dir_path, sync_dir_path)
	.then((rslt) => { //do something else });

About

A recursive synchronization algorithm written in Node JS. Very helpful for backing up hard-drives!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published