Local
rustac.store.LocalStore
An ObjectStore interface to local filesystem storage.
Can optionally be created with a directory prefix.
from pathlib import Path
store = LocalStore()
store = LocalStore(prefix="/path/to/directory")
store = LocalStore(prefix=Path("."))
__init__
__init__(
    prefix: str | Path | None = None,
    *,
    automatic_cleanup: bool = False,
    mkdir: bool = False,
) -> None
Create a new LocalStore.
Parameters:
- 
            prefix(str | Path | None, default:None) –Use the specified prefix applied to all paths. Defaults to None.
Other Parameters:
- 
          automatic_cleanup(bool) –if True, enables automatic cleanup of empty directories when deleting files. Defaults to False.
- 
          mkdir(bool) –if Trueandprefixis notNone, the directory atprefixwill attempt to be created. Note that this root directory will not be cleaned up, even ifautomatic_cleanupisTrue.
            from_url
  
      classmethod
  
from_url(
    url: str, *, automatic_cleanup: bool = False, mkdir: bool = False
) -> LocalStore