From bb23164d3b2038842e06296c1e8bb7c1bf8f57e5 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 11 May 2020 22:56:24 +0100 Subject: [PATCH] change windows struct def --- src/meta/filetype.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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,