Replace dive() with fs.readdir() to test.