Storage/src/StreamWrapper.php
public function stream_stat()
    {
        $mode = $this->stream->isWritable()
            ? self::FILE_WRITABLE_MODE
            : self::FILE_READABLE_MODE;
        return $this->makeStatArray([
            'mode'    => $mode,
            'size'    => $this->stream->getSize()
        ]);
    }
public function stream_stat()
    {
        $mode = $this->stream->isWritable()
            ? self::FILE_WRITABLE_MODE
            : self::FILE_READABLE_MODE;
        return $this->makeStatArray([
            'mode'    => $mode,
            'size'    => $this->stream->getSize()
        ]);
    }
public function stream_stat ( ) { $ mode = $ this -> stream -> isWritable ( ) ? self :: FILE_WRITABLE_MODE : self :: FILE_READABLE_MODE ; return $ this -> makeStatArray ( [ 'mode' => $ mode , 'size' => $ this -> stream -> getSize ( ) ] ) ; }
Callback handler for getting data about the stream.

@return array
Callback handler for getting data about the stream .