MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / home

Function home

flow-quickstart/src/git.rs:167–169  ·  view source on GitHub ↗

home path wrapper

()

Source from the content-addressed store, hash-verified

165
166/// home path wrapper
167fn home() -> Result<PathBuf> {
168 canonicalize_path(&dirs::home_dir().context("$HOME was not set")?)
169}
170
171/// prevents from long stupid paths, and replace the home path by the literal `$HOME`
172fn pretty_path(a: &Path) -> Result<String> {

Callers 3

canonicalize_pathFunction · 0.85
get_private_key_pathFunction · 0.85
pretty_pathFunction · 0.85

Calls 1

canonicalize_pathFunction · 0.85

Tested by

no test coverage detected