comment on recursion
This commit is contained in:
parent
2b5ddee232
commit
3eb674651b
|
@ -105,6 +105,7 @@ fn handle_dir(path: PathBuf) {
|
||||||
for inode in dir {
|
for inode in dir {
|
||||||
let inode = inode.expect("Couldn't read inode");
|
let inode = inode.expect("Couldn't read inode");
|
||||||
|
|
||||||
|
// recursively handle directories
|
||||||
if inode.metadata().unwrap().is_dir() {
|
if inode.metadata().unwrap().is_dir() {
|
||||||
handle_dir(inode.path());
|
handle_dir(inode.path());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue