This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
} |