Skip to main content

output_path

Function output_path 

Source
pub fn output_path(
    input: &Path,
    suffix: Option<&str>,
    prefix: Option<&str>,
    outdir: Option<&Path>,
) -> PathBuf
Expand description

Build an output path from input.

img.fits with suffix smooth gives img.smooth.fits; prefix is prepended to the file name and outdir replaces the directory.