diff --git a/src/safeposix/filesystem.rs b/src/safeposix/filesystem.rs index 1356ddf..c7831d2 100644 --- a/src/safeposix/filesystem.rs +++ b/src/safeposix/filesystem.rs @@ -7,6 +7,11 @@ use crate::interface; use super::cage::Cage; +pub fn convpath(cpath: &str) -> + interface:: RustPathBuf { + interface::RustPathBuf:: from(cpath) +} + pub fn normpath(origp: interface::RustPathBuf, cage: &Cage) -> interface::RustPathBuf { //If path is relative, prefix it with the current working directory, otherwise populate it with rootdir let mut newp = if origp.is_relative() {