def resolve_dir(self, name):
        """
        If the name represents a directory, return that name
        as a directory (with the trailing slash).
        """
        names = self._name_set()
        dirname = name + '/'
        dir_match = name not in names and dirname in names
        return dirname if dir_match else name

        If the name represents a directory, return that name
        as a directory (with the trailing slash).
        
product/gradle-plugin/src/main/python/setuptools/_vendor/zipp.py