code: def upload(self, local_path):
          
          camerafile_p = ffi.new("CameraFile**")
          with open(local_path, 'rb') as fp:
              lib.gp_file_new_from_fd(camerafile_p, fp.fileno())
              lib.gp_camera_folder_put_file(
                  self._cam._cam, self.path.encode() + b"/",
                  os.path.basename(local_path).encode(),
                  backend.FILE_TYPES['normal'], camerafile_p[0],
                  self._cam.ctx)
docs: Upload a file to the camera's permanent storage.
  
          :param local_path: Path to file to copy
          :type local_path:  str/unicode