stilt.store.LocalStore#
- class stilt.store.LocalStore(root: 'str | Path') 'None'[source]#
Store backed by a local directory.
publish_filecopies to a temporary file and renames it into place, so a reader never sees a partly written file.
Parameters
rootstr or PathDirectory that keys are relative to.
Methods#
|
Remove the file for key if it exists. |
|
Return whether key exists. |
|
Return the absolute local path of key. |
|
Copy a local file into the store under key. |
|
Return the bytes stored under key. |
|
Write data under key, creating parent directories. |