MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / home_dir

Function home_dir

packages/server/src/android.rs:1865–1880  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1863}
1864
1865fn home_dir() -> PathBuf {
1866 env::var_os("HOME")
1867 .or_else(|| env::var_os("USERPROFILE"))
1868 .or_else(
1869 || match (env::var_os("HOMEDRIVE"), env::var_os("HOMEPATH")) {
1870 (Some(drive), Some(path)) => {
1871 let mut combined = PathBuf::from(drive);
1872 combined.push(path);
1873 Some(combined.into_os_string())
1874 }
1875 _ => None,
1876 },
1877 )
1878 .map(PathBuf::from)
1879 .unwrap_or_else(|| Path::new("/").to_path_buf())
1880}
1881
1882fn extract_xml(output: &str) -> &str {
1883 output

Callers 3

avd_dirMethod · 0.70
default_sdk_rootFunction · 0.70
connect_android_consoleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected