Skip to content

Commit

Permalink
Add the accidentally deleted function
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaxuan-w authored Nov 14, 2024
1 parent 021fe82 commit 09be51a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/safeposix/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 09be51a

Please sign in to comment.