Skip to content

PathSettings.isPathIgnored method

PathSettings › isPathIgnored

Checks if a path is ignored by the include/exclude path settings.

Signature:

isPathIgnored(path: string, isFolder?: boolean): boolean

Parameters:

ParameterTypeDescription
pathstringThe path to check.
isFolder?booleanWhether the path is a folder. Only a folder-only glob (one ending in /) reads it: such a glob always matches the contents of a matching folder, and matches the folder itself only when this is true.

Returns: boolean — true if the path is ignored, false otherwise.