def _append_trailing_slash(self, relpath):
    return relpath if relpath.endswith('/') or len(relpath) == 0 else relpath + '/'
Add a trailing slash if not already has one.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/base/project_tree.py/ProjectTree._append_trailing_slash