code: def adjustFiles(rec, op):  # type: (Any, Union[Callable[..., Any], partial[Any]]) -> None
      
  
      if isinstance(rec, MutableMapping):
          if rec.get("class") == "File":
              rec["path"] = op(rec["path"])
          for d in rec:
              adjustFiles(rec[d], op)
      if isinstance(rec, MutableSequence):
          for d in rec:
              adjustFiles(d, op)
docs: Apply a mapping function to each File path in the object `rec`.