winbrew_core\fs\archive\platform/
windows.rs

1use std::io;
2use std::path::Path;
3
4use super::super::types::PathInfo;
5use super::{PlatformAdapter, WindowsPlatform};
6
7impl PlatformAdapter for WindowsPlatform {
8    fn inspect_path(path: &Path) -> io::Result<PathInfo> {
9        winbrew_windows::fs::inspect_path(path).map(|info| PathInfo {
10            is_directory: info.is_directory,
11            is_reparse_point: info.is_reparse_point,
12            hard_link_count: info.hard_link_count,
13        })
14    }
15
16    fn create_extraction_target_file(path: &Path) -> io::Result<std::fs::File> {
17        winbrew_windows::fs::create_extraction_target_file(path)
18    }
19}