Skip to main content

extend_path

Function extend_path 

Source
pub fn extend_path<P, S, F>(path: P, context: &[S], filename: F) -> PathBuf
where P: AsRef<Path>, S: AsRef<Path>, F: AsRef<Path>,
Expand description

Extend a path with a context and filename.

  • Does not check that the path exists.
  • Does not initialize the containing directories.

ยงArguments

  • context - prefix dirs, inserted between self.cache_dir and file.
  • file - the final file name.