Skip to content

empty directories do not get removed #51

@jebarpg

Description

@jebarpg

I run the command
node_modules/modclean/bin/modclean.js -n default:safe
three times and this is my results:
###########FIRST TIME#############

✔ Found 9001 files to remove
[==============================] 100% (9001/9001) 0.0s

✔ Found 6661 empty directories to remove
[==============================] 100% (6661/6661) 0.0s

FILES/FOLDERS DELETED
Total: 15662
Skipped: 0
Empty: 6661

###########SECOND TIME#############

✔ Found 0 files to remove
✔ Found 6545 empty directories to remove
[==============================] 100% (6545/6545) 0.0s

FILES/FOLDERS DELETED
Total: 6545
Skipped: 0
Empty: 6545

###########THIRD TIME#############

✔ Found 0 files to remove
✔ Found 6545 empty directories to remove
[==============================] 100% (6545/6545) 0.0s

FILES/FOLDERS DELETED
Total: 6545
Skipped: 0
Empty: 6545

As you can see the empty folders still are showing up after multiple times running. It should show 0 empty after the first run correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions