code: func SplitPathDirEntry(path string) (dir, base string) {
  	cleanedPath := filepath.Clean(filepath.FromSlash(path))
  
  	if specifiesCurrentDir(path) {
  		cleanedPath += string(os.PathSeparator) + "."
  	}
  
  	return filepath.Dir(cleanedPath), filepath.Base(cleanedPath)
  }
docs: // SplitPathDirEntry splits the given path between its directory name and its
  // basename by first cleaning the path but preserves a trailing "." if the
  // original path specified the current directory.