pub fn extend(&mut self, paths: &[PathBuf]) -> Result<(), notify::Error> {
        for path in paths {
            self.add_path(&path)?;
            if path.is_dir() {
                self.add_path_recursively(&path)?;
            }
        }

        Ok(())
    }
/// Extend the watch list with an additional list of paths.
/// Note: Watch maintains a list of already watched paths, and
/// will not add duplicates.
Extend the watch list with an additional list of paths.
Note: Watch maintains a list of already watched paths, and
will not add duplicates.
Extend the watch list with an additional list of paths . Note : Watch maintains a list of already watched paths and will not add duplicates .
pub fn extend(&mut self, paths: &[PathBuf]) -> Result<(), notify::Error> {
        for path in paths {
            self.add_path(&path)?;
            if path.is_dir() {
                self.add_path_recursively(&path)?;
            }
        }
        Ok(())
    }
pub fn extend ( & mut self , paths : & [ PathBuf ] ) -> Result < ( ) , notify :: Error > { for path in paths { self . add_path ( & path ) ? ; if path . is_dir ( ) { self . add_path_recursively ( & path ) ? ; } } Ok ( ( ) ) }
Extend the watch list with an additional list of paths.
Extend the watch list with an additional list of paths .
&mut self
paths
&[PathBuf]
&mut self
paths
&[PathBuf]