"So we need to determine if the path already is a directory." . . . .