comment on recursion

This commit is contained in:
Max Bradbury 2022-06-27 23:03:49 +01:00
parent 2b5ddee232
commit 3eb674651b
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}