- wxStructStat st;
-#if wxUSE_UNICODE && wxMBFILES
- wxCharBuffer fname = wxConvFile.cWC2MB(name);
-
- return !wxAccess(fname, 0) &&
- !wxStat(wxMBSTRINGCAST fname, &st) &&
- (st.st_mode & S_IFREG);
-
-#else
- return !wxAccess(name, 0) &&
- !wxStat(name, &st) &&
- (st.st_mode & S_IFREG);
-#endif