Function opendal::raw::build_rel_path

source ·
pub fn build_rel_path(root: &str, path: &str) -> String
Expand description

build_rel_path will build a relative path towards root.

§Rules

  • Input root MUST be the format like /abc/def/
  • Input path MUST start with root like /abc/def/path/to/file
  • Output will be the format like path/to/file.