src/plugman/platforms/common.js
function(plugin_dir, src, project_dir, dest, link) {
        var target_path = common.resolveTargetPath(project_dir, dest);
        if (fs.existsSync(target_path))
            throw new Error('"' + target_path + '" already exists!');

        common.copyFile(plugin_dir, src, project_dir, dest, !!link);
    }
function(plugin_dir, src, project_dir, dest, link) {
        var target_path = common.resolveTargetPath(project_dir, dest);
        if (fs.existsSync(target_path))
            throw new Error('"' + target_path + '" already exists!');

        common.copyFile(plugin_dir, src, project_dir, dest, !!link);
    }
function ( plugin_dir , src , project_dir , dest , link ) { var target_path = common . resolveTargetPath ( project_dir , dest ) ; if ( fs . existsSync ( target_path ) ) throw new Error ( '"' + target_path + '" already exists!' ) ; common . copyFile ( plugin_dir , src , project_dir , dest , ! ! link ) ; }
Same as copy file but throws error if target exists
Same as copy file but throws error if target exists