Module holochain_util::ffs

source ·
Expand description

ffs - the Friendly Filesystem

Wraps std::fs (or optionally, tokio::fs) in functions with identical signatures such that error messages include extra context, in particular the path used in the function call.

This helps with “file not found” errors. Without ffs, the error would be:

Error: No such file or directory (os error 2)

and with ffs, the error becomes:

ffs::IoError at path '/foo/bar': No such file or directory (os error 2)

Modules§

Structs§

Functions§

Type Aliases§