checked the path doesn't match a directory