Skip to content

readdir.sync.stat should have option to silently fail #20

Open
@aicioara

Description

@aicioara

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions