readdirp icon indicating copy to clipboard operation
readdirp copied to clipboard

filterFilter and directoryFilter

Open Abul22 opened this issue 3 years ago • 0 comments

Currently filterFilter and directoryFilter don't apply truly to their filters.

For more utility of this it may be wanting a flag for 'absolute' or 'ordered_in_preference'

Eg. fileFilter: ['.js','!.*'] --- Currently this will return no files with a '.' -- Not even the *.js ones explicitly included.

Ff it was done with ordered_in_preference - any .js files would be included (taking pref over the next rule to exclude everything

Something like fileFilter: ['.js','!.', ''] -- Would firstly allow all js files, then exclude anything with a '.', then include anything without an extension eg. README.

Abul22 avatar Aug 30 '21 02:08 Abul22