Skip to main content

write_wrapper

Function write_wrapper 

Source
pub fn write_wrapper(
    path: &Path,
    script: &str,
    kind: WrapperKind,
) -> Result<bool, ToolError>
Expand description

The ONE wrapper writer: claim_file(path, bytes, 0o700), with U+FEFF prepended for a .ps1 (powershell.exe 5.1 decodes a BOM-less script as the ANSI code page). Ok(false): it exists.