Skip to main content

resolve_output

Function resolve_output 

Source
pub(crate) fn resolve_output(
    base: &Path,
    to: Option<&str>,
    default_name: &str,
) -> Result<PathBuf, Refusal>
Expand description

The file to write: to under base (relative, or absolute inside it), or exports/<default_name> there. Never an existing file, never a name with .., never through a link that leaves base.