Skip to content

fse.remove() && fse.removeSync() don't throw error on ENOENT file #246

Closed
@kutyepov

Description

@kutyepov

try {
fse.removeSync('/directory/that/does/not/exist/index.js');
} catch (error) {
//no exception will be thrown
}

Similarly,

fse.remove('/directory/that/does/not/exist/index.js', function(error) {
//error is null
console.error(error);
});

fse version 0.26.5

Is it expected behavior? Otherwise, I can help fixing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions