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

Remove folders with name pattern? #9

Closed schwarcu closed 3 years ago

schwarcu commented 7 years ago

I want to remove all folders and their content within TEMP that start with "scoped". var result = findRemoveSync(process.env.TMP, { dir: "scoped_dir*" }) doesn't work

binarykitchen commented 7 years ago

i m afraid, regexes aren't supported yet but noted on the todo list here https://github.com/binarykitchen/find-remove#todo

no idea when i might add that. months or years. if that's too long for ya, submit a PR.