Move and rename goemIsDir to IsPathDir
Change error messages.