Module iroh_blobs::util::fs
source · Expand description
Utilities for filesystem operations.
Structs§
- A data source
- Information about the content on a path
Functions§
- This function converts an already canonicalized path to a string.
- Helper function that translates a key that was derived from the
path_to_key
function back into a path. - Loads a [
iroh_net::key::SecretKey
] from the provided file, or stores a newly generated one at the given location. - Walks the directory to get the total size and number of files in directory or file
- Helper function that creates a document key from a canonicalized path, removing the
root
and adding theprefix
, if they exist - This function converts a canonicalized relative path to a string, returning an error if the path is not valid unicode.
- scan_dir
rpc
Create data sources from a directory. - Create data sources from a path.