public function copy($path, $newpath) { $path = $this->prefix($path); $newpath = $this->prefix($newpath); try { $result = $this->client->copy($path, $newpath); } catch (Exception $e) { return false; } return $this->normalizeObject($result); }
/** * {@inheritdoc} */ public function copy($path, $newpath) { $path = $this->applyPathPrefix($path); $newpath = $this->applyPathPrefix($newpath); try { $this->client->copy($path, $newpath); } catch (Exception $e) { return false; } return true; }