MCPcopy Create free account
hub / github.com/dfinity/ic-repl / resolve_path

Function resolve_path

src/utils.rs:248–255  ·  view source on GitHub ↗
(base: &Path, file: &str)

Source from the content-addressed store, hash-verified

246}
247
248pub fn resolve_path(base: &Path, file: &str) -> PathBuf {
249 let file = PathBuf::from(shellexpand::tilde(file).into_owned());
250 if file.is_absolute() {
251 file
252 } else {
253 base.join(file)
254 }
255}
256
257pub fn get_dfx_hsm_pin() -> Result<String, String> {
258 std::env::var("DFX_HSM_PIN").or_else(|_| {

Callers 2

runMethod · 0.85
evalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected