```go func OpenDir() (string, error) { path, err := zenity.SelectFile(zenity.Directory()) if zenity.ErrCanceled == err { log.Info("the cancel button is pressed") return "", fmt.Errorf("the cancel button is pressed") } else if err != nil { log.Error("Exception:", err) return "", err //it occasionally reports: Incorrect function } return path, err } ``` The code runs on the Windows platform.