Skip to content
Myr

filetypes.rs

This file

Path

src/filetypes.rs

24 lines · 535 bytes · Rust

Last changed by

Add new `--type socket` and `--type pipe` filterssharkdpbefore adoptioncb56add

History of this file

Take it

1/// Whether or not to show2pub struct FileTypes {3    pub files: bool,4    pub directories: bool,5    pub symlinks: bool,6    pub sockets: bool,7    pub pipes: bool,8    pub executables_only: bool,9    pub empty_only: bool,10}1112impl Default for FileTypes {13    fn default() -> FileTypes {14        FileTypes {15            files: false,16            directories: false,17            symlinks: false,18            sockets: false,19            pipes: false,20            executables_only: false,21            empty_only: false,22        }23    }24}