tasks/remove-modules.js
function (srcpath) {
            return fs.readdirSync(srcpath).filter(function(file) {
                return fs.statSync(path.join(srcpath, file)).isDirectory();
            });
        }
function (srcpath) {
            return fs.readdirSync(srcpath).filter(function(file) {
                return fs.statSync(path.join(srcpath, file)).isDirectory();
            });
        }
function ( srcpath ) { return fs . readdirSync ( srcpath ) . filter ( function ( file ) { return fs . statSync ( path . join ( srcpath , file ) ) . isDirectory ( ) ; } ) ; }
Returns directories inside the directory associated to the provided path.
Returns directories inside the directory associated to the provided path .