Skip to main content

from_file

Method
This is a method of the IgnoreMatcher class in the indexing module.
Load patterns from file.

Signature

Parameters

str
required
Path to .praisonignore file

Returns

'IgnoreMatcher'
IgnoreMatcher with loaded patterns

Uses

  • splitlines
  • f.read
  • cls

Source

View on GitHub

praisonaiagents/knowledge/indexing.py at line 272