This method returns the file information of the newly created file.
public function rename($path_from, $path_to) { $path1 = $this->initPath($path_from); $path2 = $this->initPath($path_to); self::$dropbox->copy($path1, $path2); self::$dropbox->delete($path1); }