DirUtil.php fixed. Because of  he directory iterator, it was adding duplicate directories.