#define _MAXPATHLEN 1024
#endif
-#ifndef INVALID_FILE_ATTRIBUTES
- #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
-#endif
-
// ----------------------------------------------------------------------------
// private globals
// ----------------------------------------------------------------------------
wxString wxFileNameFromPath (const wxString& path)
{
- wxString name, ext;
- wxFileName::SplitPath(path, NULL, &name, &ext);
-
- wxString fullname = name;
- if ( !ext.empty() )
- {
- fullname << wxFILE_SEP_EXT << ext;
- }
-
- return fullname;
+ return wxFileName(path).GetFullName();
}
// Return just the directory, or NULL if no directory
if ( !gs_dir->IsOpened() )
{
- wxLogSysError(_("Can not enumerate files '%s'"), spec);
+ wxLogSysError(_("Cannot enumerate files '%s'"), spec);
return wxEmptyString;
}