function readDirSync( path ) {
	try {
		return readdirSync( path );
	} catch ( err ) {
		return err;
	}
}
Synchronously reads the contents of a directory.

@param {(string|Buffer)} path - directory path
@returns {(StringArray|Error)} directory contents or an error

@example
var out = readDirSync( __dirname );
if ( out instanceof Error ) {
    throw out;
}
console.log( out );