code: def copy_to_folder(self, parent, name=None, api=None):
          
          api = api or self._API
  
          if self.is_folder():
              raise SbgError('Copying folders is not supported')
  
          data = {
              'parent': Transform.to_file(parent)
          }
  
          if name:
              data['name'] = name
  
          response = api.post(
              url=self._URL['copy_to_folder'].format(file_id=self.id),
              data=data
          ).json()
          return File(api=api, **response)
docs: Copy file to folder
          :param parent: Folder to copy file to
          :param name: New file name
          :param api: Api instance
          :return: New file instance