pub(crate) fn is_initial_dir_target(&self, path: &Path) -> bool {
        // Must be within the initial dir
        if self.initial_dir_rules.passes(path) != Status::Ok {
            return false;
        }

        // The file should validate the file rules or be a directory
        if self.master_rules.passes(path) != Status::Ok {
            if let Ok(metadata) = std::fs::metadata(path) {
                return metadata.is_dir();
            }
            return false;
        }

        true
    }
/// Determines whether the path is within the initial dir
/// and either passes the master rules (e.g. "*.log") or it's a directory
Determines whether the path is within the initial dir
and either passes the master rules  or it's a directory
Determines whether the path is within the initial dir and either passes the master rules or it ' s a directory
pub(crate) fn is_initial_dir_target(&self, path: &Path) -> bool {
        // Must be within the initial dir
        if self.initial_dir_rules.passes(path) != Status::Ok {
            return false;
        }
        // The file should validate the file rules or be a directory
        if self.master_rules.passes(path) != Status::Ok {
            if let Ok(metadata) = std::fs::metadata(path) {
                return metadata.is_dir();
            }
            return false;
        }
        true
    }
pub ( crate ) fn is_initial_dir_target ( & self , path : & Path ) -> bool { // Must be within the initial dir if self . initial_dir_rules . passes ( path ) != Status :: Ok { return false ; } // The file should validate the file rules or be a directory if self . master_rules . passes ( path ) != Status :: Ok { if let Ok ( metadata ) = std :: fs :: metadata ( path ) { return metadata . is_dir ( ) ; } return false ; } true }
Determines whether the path is within the initial dir
and either passes the master rules (e.g.
Determines whether the path is within the initial dir and either passes the master rules ( e . g .
&self
path
&Path
&self
path
&Path