public function getContainedFiles()
    {
        if ($this->isDir()) {
            $files = array();
            $basePath = rtrim($this->_realpath, DIRECTORY_SEPARATOR);
            foreach (scandir($this->_realpath) as $fileName) {
                if (!in_array($fileName, array('.','..'))) {
                    $files[] = new File($basePath.DIRECTORY_SEPARATOR.$fileName);
                }
            }

            return $files;
        }

        return false;
    }
public function getContainedFiles()
    {
        if ($this->isDir()) {
            $files = array();
            $basePath = rtrim($this->_realpath, DIRECTORY_SEPARATOR);
            foreach (scandir($this->_realpath) as $fileName) {
                if (!in_array($fileName, array('.','..'))) {
                    $files[] = new File($basePath.DIRECTORY_SEPARATOR.$fileName);
                }
            }

            return $files;
        }

        return false;
    }
public function getContainedFiles ( ) { if ( $ this -> isDir ( ) ) { $ files = array ( ) ; $ basePath = rtrim ( $ this -> _realpath , DIRECTORY_SEPARATOR ) ; foreach ( scandir ( $ this -> _realpath ) as $ fileName ) { if ( ! in_array ( $ fileName , array ( '.' , '..' ) ) ) { $ files [ ] = new File ( $ basePath . DIRECTORY_SEPARATOR . $ fileName ) ; } } return $ files ; } return false ; }
Returns an array of contained file objects if this file is a directory, otherwise false

Note that directory links (`.` and `..`) are always ignored

@return array | false
Returns an array of contained file objects if this file is a directory otherwise false