Skip to main content

Module fs

Module fs 

Source
Expand description

prov’s filesystem read port.

prov is generic over where documents live: rather than depend on any one concrete backend — std::fs, tokio::fs, or a browser filesystem like OPFS/IndexedDB — the library asks only for a small async trait that mirrors the slice of std::fs its scan/traverse engine needs.

The port itself lives in fs_transaction::fs, one layer below this crate, because it is the seam a transaction lands through and has nothing to do with documents. It is re-exported here so prov_graph::fs remains the name prov’s read core is written against.

Only the read half is re-exported here. The write half — Storage, the durability vocabulary, and the writable adapters — is prov-store’s fs module, so that depending on this crate cannot get you the ability to change a workspace.

Structs§

DirEntry
One entry returned by ReadStorage::read_dir.
FileType
The type of a filesystem entry.
Metadata
Metadata about a filesystem entry — the subset a transaction needs.
StdFs
ReadStorage over the process filesystem (std::fs).

Traits§

ReadStorage
The read half of an async filesystem backend: everything the traversal core needs, and nothing that can change a byte on disk.