Skip to content

Instantly share code, notes, and snippets.

var fs = require('fs');
var path = require('path');
var sys = require('sys')
, limit = 50
, count = 0;
function copytree(src, dst) {
if(!path.existsSync(src)) {
throw new Error(src + ' does not exists. Nothing to be copied');
}