IsDir() test is pretty useless, use DirExists

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-11-01 15:30:38 +00:00
parent 4de1b652ea
commit d5a0a2bcf8

View File

@@ -2216,7 +2216,7 @@ bool wxFileName::GetTimes(wxDateTime *dtAccess,
// not 9x
bool ok;
FILETIME ftAccess, ftCreate, ftWrite;
if ( IsDir() )
if ( DirExists() ) // Don't use IsDir, because it returns false even if it's a directory
{
// implemented in msw/dir.cpp
extern bool wxGetDirectoryTimes(const wxString& dirname,