Skip to main content

join_pathlib

Function join_pathlib 

Source
pub fn join_pathlib(parts: &[String], fmt: PathFormat) -> String
Expand description

Join path parts using Python pathlib constructor semantics.

Matches PurePosixPath(*parts) or PureWindowsPath(*parts) behavior:

  • Absolute components reset the accumulator
  • Empty strings and . segments are removed
  • Duplicate separators are collapsed
  • .. is preserved (not resolved)