Closed pzhine closed 3 years ago
var result = findRemoveSync(rootDirectory, { files: 'example[1-3]', regex: true })
this deletes files example1.txt, example2.txt, and example3.txt, but not example8.txt.
example1.txt
example2.txt
example3.txt
example8.txt
var result = findRemoveSync(rootDirectory, { dir: '^assets_', regex: true })
this deletes all directories that start with assets_.
assets_
Fixes #9
delete all files that match a regular expression
this deletes files
example1.txt
,example2.txt
, andexample3.txt
, but notexample8.txt
.delete all directories that match a regular expression
this deletes all directories that start with
assets_
.Fixes #9