if (*s == ':')
*s = '/';
else
- *s = wxToLower (*s); // Case INDEPENDENT
+ *s = tolower(*s); // Case INDEPENDENT
s++;
}
}
*s = '/';
#ifdef __WXMSW__
else
- *s = wxToLower (*s); // Case INDEPENDENT
+ *s = tolower(*s); // Case INDEPENDENT
#endif
s++;
}
return (flag == 0) ;
}
-bool wxMkdir(const wxString& dir)
+bool wxMkdir(const wxString& dir, int perm)
{
+/*
+#if defined( __WXMAC__ )
+ strcpy( gwxMacFileName , dir ) ;
+ wxUnix2MacFilename( gwxMacFileName ) ;
+ const char *dirname = gwxMacFileName;
+#else
+ const char *dirname = dir.c_str();
+#endif
+
+ if ( mkdir(dirname, perm) != 0 )
+ {
+ wxLogSysError(_("Directory '%s' couldn't be created"), dirname);
+
+ return FALSE;
+ }
+
+ return TRUE;
+*/
+
#if defined(__WXSTUBS__)
return FALSE;
#elif defined(__VMS__)
#else
return (mkdir(WXSTRINGCAST dir) == 0);
#endif
+
}
bool wxRmdir(const wxString& dir, int WXUNUSED(flags))