Function rif::utils::walk_directory[][src]

pub fn walk_directory(
    path: &Path,
    f: &mut dyn FnMut(PathBuf) -> Result<(), RifError>
) -> Result<(), RifError>
Expand description

Walk directories and call a given function

Function is called on all paths including files and directories but given path directory.

Args

  • path - File path to start directory walking
  • f - Function refernce to be triggered on every path entry