Function walk_directory_recursive

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

Recursively 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