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
def from_directory(directory: str) -> 'IgnoreMatcher'Parameters
ParamField
strDirectory to search
Returns
ResponseField
'IgnoreMatcher'IgnoreMatcher with loaded patterns
Uses
existssplitlinesf.readcls
Used By
Source
View on GitHubpraisonaiagents/knowledge/indexing.py at line 286