Skip to content

Add support for other file types in rm #617

@freitagbr

Description

@freitagbr

rm is only able to delete files, directories, and symbolic links. fs.lstatSync is able to detect several other file types, however:

stats.isBlockDevice()
stats.isCharacterDevice()
stats.isFIFO()
stats.isSocket()

Support for these file types should be added (at least for the ones it makes sense to run rm on).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions