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

Method check

flow-rs/src/loader/mod.rs:81–85  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

79
80impl PluginType {
81 fn check(&self, path: &Path) -> Option<PathBuf> {
82 match *self {
83 PluginType::Python => PluginType::check_python(path),
84 }
85 }
86
87 fn check_python(path: &Path) -> Option<PathBuf> {
88 if path.is_file() {

Callers 1

loadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected