There may be a case where path directories are the same, but there are more child paths in the subdirectories of the last path directory. So, for gather_all_paths, even if there are no new directories, still run _get_paths_from_directories on that final directory.
There may be a case where path directories are the same, but there are more child paths in the subdirectories of the last path directory. So, for gather_all_paths, even if there are no new directories, still run _get_paths_from_directories on that final directory.