public function files($dirname)
    {
        $dirname = $this->path($dirname);

        $directory_contents = glob($dirname . "/*");

        return array_filter($directory_contents, function ($file) {
            return filetype($file) == "file";
        });
    }
public function files($dirname)
    {
        $dirname = $this->path($dirname);

        $directory_contents = glob($dirname . "/*");

        return array_filter($directory_contents, function ($file) {
            return filetype($file) == "file";
        });
    }
public function files ( $ dirname ) { $ dirname = $ this -> path ( $ dirname ) ; $ directory_contents = glob ( $ dirname . "/*" ) ; return array_filter ( $ directory_contents , function ( $ file ) { return filetype ( $ file ) == "file" ; } ) ; }
List the files of a folder passed as a parameter

@param  string $dirname

@return array
List the files of a folder passed as a parameter