Minixed icon indicating copy to clipboard operation
Minixed copied to clipboard

Using the Ignore array

Open RickAltman opened this issue 1 year ago • 3 comments

Hi, I love this little dynamo of a product! The last line of Configuration reads like this:

$ignore = array(); // Names of files and folders to not list (case-sensitive)

I presume it is a filter of sorts, so that I could instruct it to not show certain files. What is the syntax for using this, and can I use wildcards to, for example, filter out all JPG and PNG files?

RickAltman avatar Sep 12 '23 16:09 RickAltman

Rick,

Simpler than that; it's a case-insensitive comparison. Syntax should look like $ignore = array("launch_codes.csv", "Executive Meeting Minutes.docx"); unless I'm mistaken.

tim-elmer avatar Sep 22 '23 00:09 tim-elmer

It would be really useful if we could use wildcards or regular expression to filter the results!

Thanks

Dominiquini avatar Oct 29 '23 19:10 Dominiquini

You're right. I'll leave this open as a reminder, PRs are welcome anyway 😉

lorenzos avatar Aug 26 '24 06:08 lorenzos