MCPcopy Create free account
hub / github.com/GCWing/BitFun / detect_from_cwd

Function detect_from_cwd

src/apps/desktop/src/api/remote_connect_api.rs:168–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168fn detect_from_cwd() -> Option<String> {
169 let cwd = std::env::current_dir().ok()?;
170 let candidates = [
171 cwd.join("src/mobile-web/dist"),
172 cwd.join("../../mobile-web/dist"),
173 cwd.join("../mobile-web/dist"),
174 ];
175
176 check_candidates(&candidates, "cwd-relative")
177}
178
179fn check_candidates(candidates: &[PathBuf], source: &str) -> Option<String> {
180 for candidate in candidates {

Callers 1

detect_mobile_web_dirFunction · 0.85

Calls 3

check_candidatesFunction · 0.85
okMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected