Skip to content

Commit d3b90ad

Browse files
committed
fix(fileinfo): remove unsupported Windows calls
1 parent dd642c2 commit d3b90ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/file.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ impl<'a> FileInfo<'a> {
155155
#[cfg(target_os = "windows")]
156156
pub fn new(path: &'a str, arguments: Option<Vec<&'a str>>, bytes: &'a [u8]) -> Result<Self> {
157157
let metadata = fs::metadata(path)?;
158-
let mode = metadata.permissions().mode();
159158

160159
let users = Users::new_with_refreshed_list();
161160
let groups = Groups::new_with_refreshed_list();
@@ -188,7 +187,7 @@ impl<'a> FileInfo<'a> {
188187
FileDateInfo {
189188
access: format_system_time(metadata.accessed()?),
190189
modify: format_system_time(metadata.modified()?),
191-
change: format_system_time(metadata.creation_time().into()),
190+
change: String::from("unsupported"),
192191
birth: metadata
193192
.created()
194193
.map(format_system_time)

0 commit comments

Comments
 (0)