FileStore
Objects as the files under the paths MOUNTS names.
Functions
constructor__init__() -> NoneStart with an empty entity tag cache.
Returns
Nonefunc_tag(path) -> str | NoneReturn the content hash of path, rehashing only when its size or time changed.
parampathstrReturns
str | Nonefuncget(key) -> tuple[bytes, str] | NoneRead the file behind key.
paramkeystrReturns
tuple[bytes, str] | Nonefuncput(key, data, if_match=None, if_absent=False) -> strReplace the file behind key atomically, private to the server's user.
paramkeystrparamdatabytesparamif_matchstr | None= Noneparamif_absentbool= FalseReturns
strfuncdelete(key, if_match=None) -> NoneRemove the file behind key.
paramkeystrparamif_matchstr | None= NoneReturns
Nonefunclist(prefix='') -> dict[str, str]Walk the mounts prefix reaches.
paramprefixstr= ''Returns
dict[str, str]