use bitflags::bitflags;
bitflags! {
pub struct Mode: u32 {
const DIR = 0o040000;
const FILE = 0o100644;
const FILE_EXECUTABLE = 0o100755;
const SYMLINK = 0o120000;
const COMMIT = 0o160000;
}
}
impl Mode {
pub fn is_sparse(&self) -> bool {
*self == Self::DIR
}
}