src/cordova/util.js
function findPlugins (pluginDir) {
    var plugins = [];

    if (fs.existsSync(pluginDir)) {
        plugins = fs.readdirSync(pluginDir).filter(function (fileName) {
            var pluginPath = path.join(pluginDir, fileName);
            var isPlugin = isDirectory(pluginPath) || isSymbolicLink(pluginPath);
            return fileName !== '.svn' && fileName !== 'CVS' && isPlugin;
        });
    }

    return plugins;
}
function findPlugins (pluginDir) {
    var plugins = [];

    if (fs.existsSync(pluginDir)) {
        plugins = fs.readdirSync(pluginDir).filter(function (fileName) {
            var pluginPath = path.join(pluginDir, fileName);
            var isPlugin = isDirectory(pluginPath) || isSymbolicLink(pluginPath);
            return fileName !== '.svn' && fileName !== 'CVS' && isPlugin;
        });
    }

    return plugins;
}
list the directories in the path, ignoring any files