code: func assertsDirectory(path string, sep byte) bool {
  	return hasTrailingPathSeparator(path, sep) || specifiesCurrentDir(path)
  }
docs: // assertsDirectory returns whether the given path is
  // asserted to be a directory, i.e., the path ends with
  // a trailing '/' or `/.`, assuming a path separator of `/`.