The loop will instantiate the dir iterator from the path list, so the the special case in the caller is fairly redundant.
mentioned in commit 625fa66a