object_store::util

Function join_dir

Source
pub fn join_dir(parent: &str, child: &str) -> String
Expand description

Join two paths and normalize the output dir.

The output dir is always ends with /. e.g.

  • /a/b join c => /a/b/c/
  • /a/b join /c/ => /a/b/c/

All internal // will be replaced by /.