/** * {@inheritdoc} */ public function copy($path, $newpath) { try { $this->client->copy($path, $newpath); } catch (\Exception $e) { return false; } return true; }
/** * {@inheritdoc} */ public function copy($path, $newpath) { $origin = $this->applyPathPrefix($path); $destination = $this->applyPathPrefix($newpath); try { $this->client->copy($origin, $destination); } catch (\Exception $e) { return false; } return true; }
/** * Copy a file * * @param string $path * @param string $newpath * @return array file metadata */ public function copy($path, $newpath) { $result = $this->client->copy($path, $newpath); return $this->normalizeObject($result, $newpath); }