From 09be51ac3db263a3e5937d2c85052a2b4123fc8b Mon Sep 17 00:00:00 2001 From: Alice Wen <40227173+Yaxuan-w@users.noreply.github.com> Date: Wed, 13 Nov 2024 21:55:06 -0500 Subject: [PATCH] Add the accidentally deleted function --- src/safeposix/filesystem.rs | 5 +++++ 1 file changed, 5 insertions(+) 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() {