MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / home_dir

Function home_dir

src/agents/mod.rs:1011–1016  ·  view source on GitHub ↗

Returns the user's home directory, cross-platform.

()

Source from the content-addressed store, hash-verified

1009
1010/// Returns the user's home directory, cross-platform.
1011pub fn home_dir() -> Option<PathBuf> {
1012 std::env::var("HOME")
1013 .or_else(|_| std::env::var("USERPROFILE"))
1014 .ok()
1015 .map(PathBuf::from)
1016}
1017
1018/// Strip `//` line comments, `/* */` block comments, and trailing commas
1019/// before `}` / `]` from a JSONC string, then parse with `serde_json`.

Callers 15

kiro_homeFunction · 0.70
sync_claude_plugin_cacheFunction · 0.70
check_install_staleFunction · 0.70
user_data_dirFunction · 0.50
run_doctorFunction · 0.50
tracedecay_home_dirFunction · 0.50
reinstall_tracked_agentsFunction · 0.50
run_post_update_tasksFunction · 0.50
handle_install_commandFunction · 0.50
handle_reinstall_commandFunction · 0.50

Calls

no outgoing calls