MCPcopy Create free account
hub / github.com/Wulf/tsync / check_path

Function check_path

src/lib.rs:137–147  ·  view source on GitHub ↗
(path: P, state: &mut BuildState)

Source from the content-addressed store, hash-verified

135}
136
137fn check_path<P: AsRef<Path>>(path: P, state: &mut BuildState) -> bool {
138 if !path.as_ref().exists() {
139 if *DEBUG.get() {
140 println!("Path `{:#?}` does not exist", path.as_ref());
141 }
142 state.unprocessed_files.push(path.as_ref().to_path_buf());
143 return false;
144 }
145
146 true
147}
148
149fn check_extension<P: AsRef<Path>>(ext: &OsStr, path: P) -> bool {
150 if !ext.eq_ignore_ascii_case("rs") {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected