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

Function make_project

flow-quickstart/src/main.rs:78–87  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

76}
77
78fn make_project(s: &str) -> Result<Action, &'static str> {
79 if Path::new(s).exists() {
80 retry!("{} already exists, retry another path!", s);
81 return Ok(Action::Retry);
82 }
83
84 CONTEXT.lock().unwrap().project_path = s.to_owned();
85
86 Ok(Action::Next)
87}
88
89fn substitute_model_inp(s: &str) -> Result<Action, &'static str> {
90 let dir = &CONTEXT.lock().unwrap().project_path;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected