2022-11-29 15:16 UTC
🔎 🗑️ Want to find empty folders on your machine to delete?
# locate empty folders
find . -type d -empty
# delete those folders
find . -type d -empty -delete
# https://github.com/sharkdp/fd
brew install fd
# locate empty folders ignoring .gitignore
fd . -td -te
# interactively delete empty folders
fd . -td -te -X rm -rfi
Replies (0)
No replies.