diff --git a/src/meta/filetype.rs b/src/meta/filetype.rs index eaf2e9f..e412260 100644 --- a/src/meta/filetype.rs +++ b/src/meta/filetype.rs @@ -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,