docs: def from_info(cls, container, info_obj):
          """Create from subdirectory or file info object."""
          create_fn = cls.from_subdir if 'subdir' in info_obj \
              else cls.from_file_info
          return create_fn(container, info_obj)