Skip to main content

resolve_relative_path

Function resolve_relative_path 

Source
pub fn resolve_relative_path(base_path: &str, rel_path: &str) -> String
Expand description

base_path(ディレクトリ。末尾 /)と rel_path を繋いで正規化する。

触ってはいけない値(is_opaque)と、既に絶対パスのものは素通し。