public function fileList()
    {
        $result = array();

        $dirContent = opendir($this->_dirPath);
        while (($file = readdir($dirContent)) !== false) {
            if (($file == '..')||($file == '.')) {   continue;
            }

            if(!is_dir($this->_dirPath . '/' . $file) ) {
                $result[] = $file;
            }
        }
        closedir($dirContent);

        return $result;
    }
public function fileList()
    {
        $result = array();

        $dirContent = opendir($this->_dirPath);
        while (($file = readdir($dirContent)) !== false) {
            if (($file == '..')||($file == '.')) {   continue;
            }

            if(!is_dir($this->_dirPath . '/' . $file) ) {
                $result[] = $file;
            }
        }
        closedir($dirContent);

        return $result;
    }
public function fileList ( ) { $ result = array ( ) ; $ dirContent = opendir ( $ this -> _dirPath ) ; while ( ( $ file = readdir ( $ dirContent ) ) !== false ) { if ( ( $ file == '..' ) || ( $ file == '.' ) ) { continue ; } if ( ! is_dir ( $ this -> _dirPath . '/' . $ file ) ) { $ result [ ] = $ file ; } } closedir ( $ dirContent ) ; return $ result ; }
Returns an array of strings, one for each file in the directory.

@return array
Returns an array of strings one for each file in the directory .