Skip to content

Commit

Permalink
Merge pull request #4041 from wasmerio/fix_relative_mapdir
Browse files Browse the repository at this point in the history
Canonicalize host folder on mapdir
  • Loading branch information
ptitSeb authored Jun 27, 2023
2 parents fe5d05f + 9042dd8 commit f2a079b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn wasmer_should_print_color() -> bool {
}

fn retrieve_alias_pathbuf(alias: &str, real_dir: &str) -> Result<MappedDirectory> {
let pb = PathBuf::from(&real_dir);
let pb = PathBuf::from(&real_dir).canonicalize()?;
if let Ok(pb_metadata) = pb.metadata() {
if !pb_metadata.is_dir() {
bail!("\"{}\" exists, but it is not a directory", &real_dir);
Expand Down

0 comments on commit f2a079b

Please sign in to comment.