MCPcopy Index your code
hub / github.com/endbasic/endbasic / is_path_valid

Method is_path_valid

std/src/storage/mod.rs:269–271  ·  view source on GitHub ↗

Returns true if the given path is valid.

(s: &str)

Source from the content-addressed store, hash-verified

267
268 /// Returns true if the given path is valid.
269 fn is_path_valid(s: &str) -> bool {
270 !s.is_empty() && !s.chars().any(|c| c == ':' || c == '\\')
271 }
272
273 /// Returns the last component of this path, or none if there is no referenced file.
274 fn leaf_name(&self) -> Option<&str> {

Callers

nothing calls this directly

Calls 2

charsMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected