/** * {@inheritdoc} */ public function update($path, $contents, Config $config) { $location = $this->applyPathPrefix($path); $result = $this->client->uploadFromString($location, $contents); unset($this->metaCache[$location]); return $this->normalizeObject($result, $location); }
/** * Update a file * * @param string $path * @param string $contents * @param mixed $config Config object or visibility setting * @return array file metadata */ public function update($path, $contents, $config = null) { $location = $this->applyPathPrefix($path); $result = $this->client->uploadFromString($location, $contents); return $this->normalizeObject($result, $path); }