stilt.store.LocalStore#
- class stilt.store.LocalStore(root: 'str | Path') 'None'[source]#
Store backed by a local directory.
publish_filewrites to a sibling.tmpfile and then renames it onto the final key, so concurrent readers never observe a partial file.
Methods#
|
Return whether the key has been written. |
|
Return a local path for the key; the store is already local. |
|
Return the absolute local path for key. |
|
Copy a finished local file into the store; a missing source is ignored. |
|
Read the key's bytes. |
|
Write bytes to the key, creating parent directories. |