Skip to content

filterIgnoredFiles

filterIgnoredFiles(filePaths, rootDir, customPatterns?, enabled?): string[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/aiignoreUtils.ts:168

Filter an array of file paths based on aiignore patterns

string[]

Array of file paths to filter

string

The root directory for relative pattern matching

string[] | undefined

Optional custom patterns to use instead of loading from file

boolean = true

Whether aiignore is enabled

string[]

Filtered array of file paths that should not be ignored