Skip to content

Error ENOTEMPTY when deleting a directory recursively. #49

@rmariuzzo

Description

@rmariuzzo

Sometimes, when deleting a directory that has sub-directories and files it throw an error witch code: ENOTEMPTY.

When executing this: rm('-rf', '/path/to/build/zip') the following error is thrown:

rm: could not remove directory (code ENOTEMPTY): build/zip/vendors/bootstrap

Note: It can happen with any sub-directory, is not related to a particular directory only. It doesn't happens with files.

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