pub fn create_extraction_target_file(path: &Path) -> Result<File>Expand description
Create a new file for extraction, failing if the target already exists.
This helper is used by archive and package extraction code when the output path must be brand new. It keeps the file creation rules in one place and applies the Windows flag WinBrew expects for reparse-point-aware staging.
ยงExample
use std::path::Path;
use winbrew_windows::fs::create_extraction_target_file;
let _file = create_extraction_target_file(Path::new(r"C:\Temp\extract\tool.exe")).unwrap();