if (!wxEndsWithPathSeparator(path))
path += wxFILE_SEP_PATH;
path += new_name;
- if (wxFileExists(path))
+ if (wxPathExists(path))
{
// try NewName0, NewName1 etc.
int i = 0;
path += wxFILE_SEP_PATH;
path += new_name;
i++;
- } while (wxFileExists(path));
+ } while (wxPathExists(path));
}
wxLogNull log;