binarykitchen / find-remove

recursively finds files by filter options from a start directory onwards and deletes these. useful if you want to clean up a directory in your node.js app.
https://npmjs.org/package/find-remove
61 stars 19 forks source link

Ignore folders by name #24

Open adame21 opened 4 years ago

adame21 commented 4 years ago

Hi, Is there any way to ignore entire folders same as we ignore files ?

Thanks :)

binarykitchen commented 4 years ago

I think so, look here https://github.com/binarykitchen/find-remove#5-delete-recursively-any-subdirectory-called-cvs-within-dist

adame21 commented 4 years ago

Hi, I looked into the link at example #5 from the documentation. It seems that its giving me the option to specify which folder I want to delete specifically. What im looking for is to not delete ANY folder, rather delete only files and ignore certain folders by name. What I'm thinking right now is the set up a specific delete operation for every path I need, and just not include the folder I want to ignore. It would be pretty tedious as I have a lot of paths and just one single path I would like to ignore. I hope i explained myself properly :) Please let me know if thats possible to ignore a specific path with the current library abilities Thanks!

binarykitchen commented 4 years ago

Ah I get it now.

Sorry, thats too much work. Can't do that now.

Reopened. PRs welcome or I ll do it one day in the future when my kids are older :)