def _append_slash_if_dir_path(self, relpath):
    if self._isdir_raw(relpath):
      return self._append_trailing_slash(relpath)

    return relpath
For a dir path return a path that has a trailing slash.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/base/project_tree.py/ProjectTree._append_slash_if_dir_path