summaryrefslogtreecommitdiff
path: root/runtime/ops
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-09-28 07:55:01 -0400
committerGitHub <noreply@github.com>2024-09-28 07:55:01 -0400
commitfc739dc5eb2769e4608ccf08d23ca8ff0fcc19c5 (patch)
tree9c5bca411f4b9a6aea5a190d88217f4925563ad3 /runtime/ops
parentb694efb3849c4737e8ad617a9a48d5488e21d5da (diff)
refactor: use deno_path_util (#25918)
Diffstat (limited to 'runtime/ops')
-rw-r--r--runtime/ops/os/mod.rs2
-rw-r--r--runtime/ops/process.rs2
2 files changed, 2 insertions, 2 deletions
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<PathBuf, AnyError> {
}
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(