def _norm_with_dir(path):
  normed = normpath(path)
  if path.endswith(os_sep + '.'):
    return normed + os_sep + '.'
  return normed
Form of `normpath` that preserves a trailing slash-dot.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/engine/exp/fs.py/_norm_with_dir