public function url_stat($uri, $flags)
    {
        $this->uri = $uri;

        try {
            return $this->getFilesystem()->stat($this->getTarget(), $flags);
        } catch (FileNotFoundException $e) {
            // File doesn't exist.
            if ( ! ($flags & STREAM_URL_STAT_QUIET)) {
                $this->triggerError('stat', $e);
            }
        } catch (\Exception $e) {
            $this->triggerError('stat', $e);
        }

        return false;
    }
public function url_stat($uri, $flags)
    {
        $this->uri = $uri;

        try {
            return $this->getFilesystem()->stat($this->getTarget(), $flags);
        } catch (FileNotFoundException $e) {
            // File doesn't exist.
            if ( ! ($flags & STREAM_URL_STAT_QUIET)) {
                $this->triggerError('stat', $e);
            }
        } catch (\Exception $e) {
            $this->triggerError('stat', $e);
        }

        return false;
    }
public function url_stat ( $ uri , $ flags ) { $ this -> uri = $ uri ; try { return $ this -> getFilesystem ( ) -> stat ( $ this -> getTarget ( ) , $ flags ) ; } catch ( FileNotFoundException $ e ) { // File doesn't exist. if ( ! ( $ flags & STREAM_URL_STAT_QUIET ) ) { $ this -> triggerError ( 'stat' , $ e ) ; } } catch ( \ Exception $ e ) { $ this -> triggerError ( 'stat' , $ e ) ; } return false ; }
Retrieves information about a file.

@param string $uri
@param int    $flags

@return array|false Output similar to stat().

@see stat()
Retrieves information about a file .