Local¶
obstore.store.LocalStore ¶
Local filesystem storage providing an ObjectStore interface to files on local disk. Can optionally be created with a directory prefix.
from pathlib import Path
store = LocalStore()
store = LocalStore(prefix="/path/to/directory")
store = LocalStore(prefix=Path("."))
from_url
classmethod
¶
from_url(url: str) -> LocalStore
Construct a new LocalStore from a file://
URL.
Examples:
Construct a new store pointing to the root of your filesystem:
url = "file:///"
store = LocalStore.from_url(url)
Construct a new store with a directory prefix:
url = "file:///Users/kyle/"
store = LocalStore.from_url(url)