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 the output path from the input path with an optional suffix/prefix/outdir (re-exported from atfits_rs). Build an output path from input with an optional suffix/prefix/outdir.

With suffix = Some("smooth") and input img.fits, yields img.smooth.fits; prefix is prepended to the filename; outdir overrides the directory.