Show / Hide Table of Contents

Method PathFilter.ShouldInclude


Overload

Returns true if the path matches the glob patterns.

public bool ShouldInclude(ReadOnlySpan<char> relativePath, bool? isDirectory = null)
Parameters
relativePath  (ReadOnlySpan<char>)

Relative path.

isDirectory  (bool?)

If not null:

  • true - it's a directory. It will not match patterns with prefix f:.
  • false - it's a file. It will not match patterns with prefix d:.
Returns
bool