void wxFileCtrl::GoToDir( const wxString &dir )
{
- if (!wxDirExists(dir)) return;
+ if (!wxPathExists(dir)) return;
m_dirName = dir;
UpdateFiles();
if (!IsTopMostDir(dir))
dir += wxFILE_SEP_PATH;
dir += filename;
- if (wxDirExists(dir)) return;
+ if (wxPathExists(dir)) return;
ignoreChanges = true;
m_text->SetValue( filename );
filename = dir;
}
- if (wxDirExists(filename))
+ if (wxPathExists(filename))
{
m_list->GoToDir( filename );
UpdateControls();