public static function listFiles(string $directory, string $regex = "*"): array
    {
        $files = array();
        foreach (glob($directory . $regex) as $filepath) {
            $files[] = $filepath;
        }
        
        return $files;
    }