⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

resolve_path

Function resolve_path 

Source
pub fn resolve_path(path: &str, cwd: &str) -> String
Expand description

Resolve a potentially relative path against a given working directory.

  • If path starts with /, it is treated as absolute and normalized.
  • Otherwise, path is appended to cwd with a / separator and normalized.