Expand description
Utilities for filesystem operations.
Structs§
- Data
Source - A data source
- Path
Content - Information about the content on a path
Functions§
- canonicalized_
path_ to_ string - This function converts an already canonicalized path to a string.
- key_
to_ path - Helper function that translates a key that was derived from the
path_to_key
function back into a path. - load_
secret_ key rpc
- Loads a
iroh::SecretKey
from the provided file, or stores a newly generated one at the given location. - path_
content_ info - Walks the directory to get the total size and number of files in directory or file
- path_
to_ key - Helper function that creates a document key from a canonicalized path, removing the
root
and adding theprefix
, if they exist - relative_
canonicalized_ path_ to_ string - 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.
- scan_
path rpc
- Create data sources from a path.