'; foreach (new DirectoryIterator($path) as $item) { if ($item->isDot()) continue; if ($item->isDir()) { $fullPath = $item->getPathname(); $info = getAlbumInfo($fullPath); $isCurrentPath = realpath($fullPath) === $currentPath; $hasSubfolders = hasSubfolders($fullPath); $output .= '