fileMgr.js
function (dirPath) {

		var dirContents = fs.readdirSync(dirPath);
		return dirContents.filter(function (subDirName) {
			// Filter out non-directories.
			var subDirPath = path.join(dirPath, subDirName);
			return fs.lstatSync(subDirPath).isDirectory();
		});
	}
function (dirPath) {

		var dirContents = fs.readdirSync(dirPath);
		return dirContents.filter(function (subDirName) {
			// Filter out non-directories.
			var subDirPath = path.join(dirPath, subDirName);
			return fs.lstatSync(subDirPath).isDirectory();
		});
	}
function ( dirPath ) { var dirContents = fs . readdirSync ( dirPath ) ; return dirContents . filter ( function ( subDirName ) { // Filter out non-directories. var subDirPath = path . join ( dirPath , subDirName ) ; return fs . lstatSync ( subDirPath ) . isDirectory ( ) ; } ) ; }
Get a list of directories from the specified path.
Get a list of directories from the specified path .