Skip to main content

get_file_info

Method
This is a method of the FileTracker class in the indexing module.
Get file information (hash, mtime, size).

Signature

Parameters

str
required
Path to file

Returns

Dict[str, Any]
Dict with path, hash, mtime, size

Uses

  • os.stat
  • hexdigest
  • hashlib.sha256
  • f.read

Used By

Source

View on GitHub

praisonaiagents/knowledge/indexing.py at line 343