1The fs.readdirSync() method is used to synchronously read the contents
2of a given directory.
3The method returns an array with all the file names
4or objects in the directory. The options argument can be used to change the
5format in which the files are returned from the method.
6
7fs.readdirSync( path, options )