From fc739dc5eb2769e4608ccf08d23ca8ff0fcc19c5 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 28 Sep 2024 07:55:01 -0400 Subject: refactor: use deno_path_util (#25918) --- runtime/ops/os/mod.rs | 2 +- runtime/ops/process.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/ops') diff --git a/runtime/ops/os/mod.rs b/runtime/ops/os/mod.rs index 544031dd7..bd9260e97 100644 --- a/runtime/ops/os/mod.rs +++ b/runtime/ops/os/mod.rs @@ -4,11 +4,11 @@ use super::utils::into_string; use crate::worker::ExitCode; use deno_core::error::type_error; use deno_core::error::AnyError; -use deno_core::normalize_path; use deno_core::op2; use deno_core::v8; use deno_core::OpState; use deno_node::NODE_ENV_VAR_ALLOWLIST; +use deno_path_util::normalize_path; use deno_permissions::PermissionsContainer; use serde::Serialize; use std::collections::HashMap; diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index 530dcf49b..f6555e932 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -689,7 +689,7 @@ fn resolve_cmd(cmd: &str, env: &RunEnv) -> Result { } fn resolve_path(path: &str, cwd: &Path) -> PathBuf { - deno_core::normalize_path(cwd.join(path)) + deno_path_util::normalize_path(cwd.join(path)) } fn check_run_permission( -- cgit v1.2.3