Read directory async error handline



examples/fs/readdir_async_errors.js
const fs = require('fs')

fs.readdir('xyz', function (err, files) {
    if (err) {
        console.log('Error', err);
    } else {
        console.log(files);
    }
})