function (source, destination)
    {
      if (!fs.existsSync(destination))
        mkdir('-p', destination);

      cp('-R', source, destination);
    }
function (source, destination)
    {
      if (!fs.existsSync(destination))
        mkdir('-p', destination);

      cp('-R', source, destination);
    }
function ( source , destination ) { if ( ! fs . existsSync ( destination ) ) mkdir ( '-p' , destination ) ; cp ( '-R' , source , destination ) ; }
Shortcut for copying a folder and it's contents recursively to a given destination,
if the source does not exist, it will do nothing.
@param source
@param destination
Shortcut for copying a folder and it s contents recursively to a given destination if the source does not exist it will do nothing .