From Directory • AI Agent SDK

from_directory: Auto-detect and load .praisonignore from directory.

from_directory

Method

</div>

This is a method of the IgnoreMatcher class in the indexing module.

Auto-detect and load .praisonignore from directory.

Also checks for .gitignore as fallback.

Signature

python
def from_directory(directory: str) -> 'IgnoreMatcher'

Parameters

ParamField str

Directory to search

Returns

ResponseField 'IgnoreMatcher'

IgnoreMatcher with loaded patterns

Uses

  • exists
  • splitlines
  • f.read
  • cls

Used By

Source

View on GitHub

praisonaiagents/knowledge/indexing.py at line 286