pub fn inspect_path(path: &Path) -> Result<PathInfo>Expand description
Inspect a Windows filesystem path without following reparse points.
The helper opens the target with the Windows handle APIs, reads handle information, and returns the small metadata set WinBrew needs for extraction and cleanup decisions.
ยงExample
use std::path::Path;
use winbrew_windows::fs::inspect_path;
let info = inspect_path(Path::new(r"C:\Temp\payload.msix")).unwrap();
println!("dir={} reparse={} links={}", info.is_directory, info.is_reparse_point, info.hard_link_count);