public function updateStream($path, $resource, Config $config)
    {
        $size = Util::getStreamSize($resource);
        list($ret, $err) = Qiniu_RS_Rput($this->getClient(), $this->bucket, $path, $resource, $size, null);
        if ($err !== null) {
            return false;
        }
        return compact('size', 'path');
    }