Skip to content

Commit

Permalink
println
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Aug 6, 2024
1 parent 242e34c commit 58cd14f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fs-index/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,19 @@ pub(crate) fn discover_paths<P: AsRef<Path>>(
) -> Result<Vec<DirEntry>> {
log::debug!("Discovering paths at root path: {:?}", root_path.as_ref());

// Print I guess
println!("discover_paths, Root path: {:?}", root_path.as_ref());

// Print files in the root directory (using fs::read_dir)
for entry in fs::read_dir(&root_path)? {
let entry = entry?;
log::trace!("read_dir Entry: {:?}", entry.path());
println!("read_dir Entry: {:?}", entry.path());
}

// Print files in the root directory
for entry in WalkDir::new(&root_path) {
let entry = entry.unwrap();
log::trace!("WalkDir Entry: {:?}", entry.path());
println!("WalkDir Entry: {:?}", entry.path());
}

let walker = WalkDir::new(&root_path)
Expand Down

0 comments on commit 58cd14f

Please sign in to comment.