diff options
Diffstat (limited to 'src/fs/fields.rs')
-rw-r--r-- | src/fs/fields.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fs/fields.rs b/src/fs/fields.rs index d768ebf..6ad41e3 100644 --- a/src/fs/fields.rs +++ b/src/fs/fields.rs @@ -82,13 +82,27 @@ pub struct Permissions { pub setuid: bool, } +/// The file's FileAttributes field, available only on Windows. +#[derive(Copy, Clone)] +pub struct Attributes { + pub archive: bool, + pub directory: bool, + pub readonly: bool, + pub hidden: bool, + pub system: bool, + pub reparse_point: bool, +} + /// The three pieces of information that are displayed as a single column in /// the details view. These values are fused together to make the output a /// little more compressed. #[derive(Copy, Clone)] pub struct PermissionsPlus { pub file_type: Type, + #[cfg(unix)] pub permissions: Permissions, + #[cfg(windows)] + pub attributes: Attributes, pub xattrs: bool, } |