ModClean / modclean

Remove unwanted files and directories from your node_modules folder
MIT License
400 stars 15 forks source link

empty directories do not get removed #51

Open jebarpg opened 6 months ago

jebarpg commented 6 months ago

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?