This could also be written as `for dir in dirs.iter()`