From 3eb674651bde5db2c77013f42f015437a67b3fd6 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Mon, 27 Jun 2022 23:03:49 +0100 Subject: [PATCH] comment on recursion --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index ef0671c..12a3def 100644 --- a/src/main.rs +++ b/src/main.rs @@ -105,6 +105,7 @@ fn handle_dir(path: PathBuf) { for inode in dir { let inode = inode.expect("Couldn't read inode"); + // recursively handle directories if inode.metadata().unwrap().is_dir() { handle_dir(inode.path()); }