Create a new FileStorage instance.
Root directory for state files. Defaults to './bot-state'.
Read items from file storage.
Keys to read.
Dictionary of key-value pairs that exist in storage.
Write items to file storage.
Dictionary of key-value pairs to write.
Delete items from file storage.
Keys to delete.
File-based storage implementation for simple persistence in single-instance deployments.
Stores each key as a separate JSON file in the configured directory. Not suitable for multi-instance deployments — no locking or concurrency protection.
Example