code: def copy(self, project, name=None):
          
          project = Transform.to_project(project)
          data = {
              'project': project
          }
          if name:
              data['name'] = name
          extra = {'resource': self.__class__.__name__, 'query': {
              'id': self.id,
              'data': data
          }}
          logger.info('Copying file', extra=extra)
          new_file = self._api.post(url=self._URL['copy'].format(id=self.id),
                                    data=data).json()
          return File(api=self._api, **new_file)
docs: Copies the current file.
          :param project: Destination project.
          :param name: Destination file name.
          :return: Copied File object.