}
*/
-bool wxDirExists( const wxString& dir )
-{
- struct stat st;
- return ((stat(dir, &st) != -1) && S_ISDIR(st.st_mode) ? TRUE : FALSE);
-}
-
bool
wxIsAbsolutePath (const wxString& filename)
{
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))