Example #1
0
 public function rename($path, $newpath)
 {
     $path = $this->prefix($path);
     $newpath = $this->prefix($newpath);
     if (!($result = $this->client->move($path, $newpath))) {
         return false;
     }
     return $this->normalizeObject($result);
 }
 public function rename($path, $newpath)
 {
     $path = $this->prefix($path);
     $newpath = $this->prefix($newpath);
     try {
         $result = $this->client->move($path, $newpath);
     } catch (Exception $e) {
         return false;
     }
     return $this->normalizeObject($result);
 }
 /**
  * {@inheritdoc}
  */
 public function rename($path, $newpath)
 {
     $path = $this->applyPathPrefix($path);
     $newpath = $this->applyPathPrefix($newpath);
     try {
         $this->client->move($path, $newpath);
     } catch (Exception $e) {
         return false;
     }
     return true;
 }