Function append

Source
pub fn append(path: impl AsRef<Path>, s: impl AsRef<str>) -> PathBuf
Expand description

Appends a string to the filename of a path.

ยงPanics

  • Will panic if there is no filename.
  • Will panic in test mode if the path has an extension.