cp.js
function(callback) {
      fs.exists(options.source, function(exists) {
        if(!exists) { callback(new Error('Source file do not exists!')); }
        else { callback(null, true); }
      });
    }
function(callback) {
      fs.exists(options.source, function(exists) {
        if(!exists) { callback(new Error('Source file do not exists!')); }
        else { callback(null, true); }
      });
    }
function ( callback ) { fs . exists ( options . source , function ( exists ) { if ( ! exists ) { callback ( new Error ( 'Source file do not exists!' ) ) ; } else { callback ( null , true ) ; } } ) ; }
Check if source exists
Check if source exists