code: def copy_folder(self, to_folder):
          
          to_folder_id = to_folder.folder_id if isinstance(to_folder,
                                                           Folder) else to_folder
  
          if self.root or not self.folder_id or not to_folder_id:
              return None
  
          url = self.build_url(
              self._endpoints.get('copy_folder').format(id=self.folder_id))
  
          response = self.con.post(url,
                                   data={self._cc('destinationId'): to_folder_id})
          if not response:
              return None
  
          folder = response.json()
  
          self_class = getattr(self, 'folder_constructor', type(self))
          # Everything received from cloud must be passed as self._cloud_data_key
          return self_class(con=self.con, main_resource=self.main_resource,
                            **{self._cloud_data_key: folder})
docs: Copy this folder and it's contents to into another folder
  
          :param to_folder: the destination Folder/folder_id to copy into
          :type to_folder: mailbox.Folder or str
          :return: The new folder after copying
          :rtype: mailbox.Folder or None