Expand description
Centralized index storage paths following XDG Base Directory Specification
Index storage location:
- Linux: ~/.local/share/plaid/indices/
- macOS: ~/Library/Application Support/plaid/indices/
- Windows: C:\Users{user}\AppData\Roaming\plaid\indices\
Structs§
- Parent
Index Info - Information about a discovered parent index
- Project
Metadata - Metadata about the project stored alongside the index
Functions§
- find_
index_ for_ project - Find an existing index for a project path Returns None if no index exists
- find_
parent_ index - Find if the given path is a subdirectory of any existing indexed project. Returns the most specific (longest-matching) parent index if found.
- get_
index_ dir_ for_ project - Get the index directory for a project path Creates the directory structure if it doesn’t exist
- get_
plaid_ data_ dir - Get the base plaid data directory (XDG_DATA_HOME/plaid or platform equivalent)
- get_
state_ path - Get the path to the state.json file within an index directory
- get_
vector_ index_ path - Get the path to the vector index within an index directory
- index_
exists - Check if an index exists for the given project