= 1024 && $i < count($units)-1) { $size /= 1024; $i++; } return round($size, 2) . ' ' . $units[$i]; } $items = scandir($path); $relativePath = trim(str_replace($root, '', $path), '/\\'); $parent = dirname($relativePath); $themeClass = $dark ? 'dark' : 'light'; ?> Directory Viewer

📁 Index of /

⬅️ Parent Directory

📁

📄 ~

image preview