pub fn is_node_data_empty(&self) -> bool {
        match self.data {
            NodeData::Directory(ref dir_node) => dir_node.is_empty(),
            NodeData::RegFile(..) => true, // always check the cache
            NodeData::SymLink(..) => panic!("forbidden to check symlink is empty or not"),
        }
    }
/// Check whether a node is an empty file or an empty directory
Check whether a node is an empty file or an empty directory
Check whether a node is an empty file or an empty directory
pub fn is_node_data_empty(&self) -> bool {
        match self.data {
            NodeData::Directory(ref dir_node) => dir_node.is_empty(),
            NodeData::RegFile(..) => true, // always check the cache
            NodeData::SymLink(..) => panic!("forbidden to check symlink is empty or not"),
        }
    }
pub fn is_node_data_empty ( & self ) -> bool { match self . data { NodeData :: Directory ( ref dir_node ) => dir_node . is_empty ( ) , NodeData :: RegFile ( .. ) => true , // always check the cache NodeData :: SymLink ( .. ) => panic ! ( " " ) , } }
Check whether a node is an empty file or an empty directory
Check whether a node is an empty file or an empty directory
&self
&self