code: def _objectify(items, container_name):
      
      objects = []
  
      # Deal with objects and object pseudo-folders first, save subdirs for later
      for item in items:
          if item.get("subdir", None) is not None:
              object_cls = PseudoFolder
          else:
              object_cls = StorageObject
  
          objects.append(object_cls(item, container_name))
  
      return objects
docs: Splits a listing of objects into their appropriate wrapper classes.