public function getFiles(array $dir_files, $files = array())
    {
        foreach ($dir_files as $file) {
            $filepath = $this->getFileManager()->DirTrim($this->getFileManager()->getDir(), $file, true);

            //Only show non-hidden files
            if ($file[0] != ".") {
                $files[] = new FileInfo($filepath, $this->getFileManager());
            }
        }
        return $files;
    }
public function getFiles(array $dir_files, $files = array())
    {
        foreach ($dir_files as $file) {
            $filepath = $this->getFileManager()->DirTrim($this->getFileManager()->getDir(), $file, true);

            //Only show non-hidden files
            if ($file[0] != ".") {
                $files[] = new FileInfo($filepath, $this->getFileManager());
            }
        }
        return $files;
    }
public function getFiles ( array $ dir_files , $ files = array ( ) ) { foreach ( $ dir_files as $ file ) { $ filepath = $ this -> getFileManager ( ) -> DirTrim ( $ this -> getFileManager ( ) -> getDir ( ) , $ file , true ) ; //Only show non-hidden files if ( $ file [ 0 ] != "." ) { $ files [ ] = new FileInfo ( $ filepath , $ this -> getFileManager ( ) ) ; } } return $ files ; }
Returns all files in the current directory

@param array $dir_files
@param array $files
@return array
Returns all files in the current directory