SealSkin

FileStore

Objects as the files under the paths MOUNTS names.

Functions

constructor__init__() -> None

Start with an empty entity tag cache.

Returns

None
func_tag(path) -> str | None

Return the content hash of path, rehashing only when its size or time changed.

parampathstr

Returns

str | None
funcget(key) -> tuple[bytes, str] | None

Read the file behind key.

paramkeystr

Returns

tuple[bytes, str] | None
funcput(key, data, if_match=None, if_absent=False) -> str

Replace the file behind key atomically, private to the server's user.

paramkeystr
paramdatabytes
paramif_matchstr | None
= None
paramif_absentbool
= False

Returns

str
funcdelete(key, if_match=None) -> None

Remove the file behind key.

paramkeystr
paramif_matchstr | None
= None

Returns

None
funclist(prefix='') -> dict[str, str]

Walk the mounts prefix reaches.

paramprefixstr
= ''

Returns

dict[str, str]

On this page