readdir-enhanced icon indicating copy to clipboard operation
readdir-enhanced copied to clipboard

readdir.sync.stat should have option to silently fail

Open aicioara opened this issue 7 years ago • 0 comments

I use the following under Windows

const readdir = require('readdir-enhanced')
const result = readdir.sync.stat('C:/')

Under my system this fails because some files are protected (for instance C:\pagefile.sys). Should there be an option to either skip those errors and return the rest of the file stats, or to return the other files as part of the exception payload?

aicioara avatar Apr 16 '19 20:04 aicioara