Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/OpenShell
/ path_is_or_under
Function
path_is_or_under
crates/openshell-core/src/driver_mounts.rs:125–127 ·
view source on GitHub ↗
(path: &Path, parent: &Path)
Source
from the content-addressed store, hash-verified
123
}
124
125
fn path_is_or_under(path: &Path, parent: &Path) -> bool {
126
path == parent || path.starts_with(parent)
127
}
128
129
#[cfg(test)]
130
mod tests {
Callers
1
validate_container_mount_target
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected