pub fn simple_type(&self) -> SimpleType {
        let typ = self.stat.st_mode & libc::S_IFMT;
        match typ {
            libc::S_IFREG => SimpleType::File,
            libc::S_IFDIR => SimpleType::Dir,
            libc::S_IFLNK => SimpleType::Symlink,
            _ => SimpleType::Other,
        }
    }
/// Returns simplified type of the directory entry
Returns simplified type of the directory entry
Returns simplified type of the directory entry
pub fn simple_type(&self) -> SimpleType {
        let typ = self.stat.st_mode & libc::S_IFMT;
        match typ {
            libc::S_IFREG => SimpleType::File,
            libc::S_IFDIR => SimpleType::Dir,
            libc::S_IFLNK => SimpleType::Symlink,
            _ => SimpleType::Other,
        }
    }
pub fn simple_type ( & self ) -> SimpleType { let typ = self . stat . st_mode & libc :: S_IFMT ; match typ { libc :: S_IFREG => SimpleType :: File , libc :: S_IFDIR => SimpleType :: Dir , libc :: S_IFLNK => SimpleType :: Symlink , _ => SimpleType :: Other , } }
Returns simplified type of the directory entry
Returns simplified type of the directory entry
&self
&self