lib/cli.js
function ensurePathsExist(pathsList, cb) {
	async.eachLimit(pathsList, 10, function (pathItem, callback) {
		var absolutePath = path.resolve(pathItem);
		fs.stat(absolutePath, function (error, stats) {
			if (error) {
				return callback(new Error('Path does not exist: ' + absolutePath));
			}

			if (!stats.isDirectory()) {
				return callback(new Error('Path is not a directory: ' + absolutePath));
			}

			return callback();
		});
	}, cb);
}
function ensurePathsExist(pathsList, cb) {
	async.eachLimit(pathsList, 10, function (pathItem, callback) {
		var absolutePath = path.resolve(pathItem);
		fs.stat(absolutePath, function (error, stats) {
			if (error) {
				return callback(new Error('Path does not exist: ' + absolutePath));
			}

			if (!stats.isDirectory()) {
				return callback(new Error('Path is not a directory: ' + absolutePath));
			}

			return callback();
		});
	}, cb);
}
function ensurePathsExist ( pathsList , cb ) { async . eachLimit ( pathsList , 10 , function ( pathItem , callback ) { var absolutePath = path . resolve ( pathItem ) ; fs . stat ( absolutePath , function ( error , stats ) { if ( error ) { return callback ( new Error ( 'Path does not exist: ' + absolutePath ) ) ; } if ( ! stats . isDirectory ( ) ) { return callback ( new Error ( 'Path is not a directory: ' + absolutePath ) ) ; } return callback ( ) ; } ) ; } , cb ) ; }
Function which esures all given paths exist. If not it will return an error via the callback
provided.

@param {Array} pathsList
@param {Function} cb
@returns {undefined}
Function which esures all given paths exist . If not it will return an error via the callback provided .