'; 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 .= '
  • '; $output .= '
    '; $output .= ''; $output .= '📁 ' . htmlspecialchars($info['title']); $output .= ''; $output .= '
    '; if (!$hasSubfolders) { $output .= '🖼️'; } $output .= ''; $output .= ''; if ($fullPath !== './liste_albums') { $output .= ''; } $output .= '
    '; $output .= generateTree($fullPath, $currentPath); $output .= '
  • '; } } $output .= ''; return $output; } ?> Arborescence - ICO

    Gestion de l'arborescence

    Retour