change windows struct def

This commit is contained in:
Jay 2020-05-11 22:56:24 +01:00 committed by Abin Simon
parent 736e9b7564
commit bb23164d3b

View file

@ -7,9 +7,19 @@ use std::fs::Metadata;
pub enum FileType {
BlockDevice,
CharDevice,
Directory { uid: bool },
File { uid: bool, exec: bool },
SymLink { is_dir: bool },
Directory {
uid: bool,
},
File {
uid: bool,
exec: bool,
},
#[cfg(unix)]
SymLink {
is_dir: bool,
},
#[cfg(windows)]
SymLink,
Pipe,
Socket,
Special,