public static function listDirectories(string $directory, int $depth = 1): array
    {
        $path = $directory . str_repeat('*/', $depth);

        $files = array();
        foreach (glob($path, GLOB_ONLYDIR) as $filepath) {
            $files[] = $filepath . '/';
        }
        
        return $files;
    }