mirror of
https://github.com/lsd-rs/lsd
synced 2024-11-13 23:57:08 +00:00
implement for windows too
This commit is contained in:
parent
07efe8faa7
commit
549f559305
1 changed files with 3 additions and 13 deletions
|
@ -7,19 +7,9 @@ use std::fs::Metadata;
|
|||
pub enum FileType {
|
||||
BlockDevice,
|
||||
CharDevice,
|
||||
Directory {
|
||||
uid: bool,
|
||||
},
|
||||
File {
|
||||
uid: bool,
|
||||
exec: bool,
|
||||
},
|
||||
#[cfg(unix)]
|
||||
SymLink {
|
||||
is_dir: bool,
|
||||
},
|
||||
#[cfg(windows)]
|
||||
SymLink,
|
||||
Directory { uid: bool },
|
||||
File { uid: bool, exec: bool },
|
||||
SymLink { is_dir: bool },
|
||||
Pipe,
|
||||
Socket,
|
||||
Special,
|
||||
|
|
Loading…
Reference in a new issue