FileScan.Filter

Alias for Filter delegate. Accepts a FilePath & a bool as arguments and returns a bool.

The FilePath argument represents a file found by the scan, and the bool whether the FilePath represents a folder.

The filter should return true, if matched by the filter. Note that returning false where the path is a folder will result in all files contained being ignored. To always recurse folders, do something like this:

return (isDir || match (fp.name));
class FileScan
alias Filter = FilePath.Filter

Meta