public static function allFiles(String $pattern = '*', Bool $allFiles = false) : Array
    {
        return Filesystem::getRecursiveFiles($pattern, $allFiles);
    }
public static function allFiles(String $pattern = '*', Bool $allFiles = false) : Array
    {
        return Filesystem::getRecursiveFiles($pattern, $allFiles);
    }
public static function allFiles ( String $ pattern = '*' , Bool $ allFiles = false ) : Array { return Filesystem :: getRecursiveFiles ( $ pattern , $ allFiles ) ; }
Used to retrieve a list of all subdirectories and files belonging to a directory.
You can set the second parameter to true
if you want to list the files that are also in the nested indexes.

@param string $pattern  = '*'
@param bool   $allFiles = false

@return array
Used to retrieve a list of all subdirectories and files belonging to a directory . You can set the second parameter to true if you want to list the files that are also in the nested indexes .