X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d37fd2fada5c7d1cbb78844a4a6540284256e72f..a0d8a3052817fef6eef27e9a6ab8802495a39db8:/src/common/filefn.cpp diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index a4e7efb765..14292771e1 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -785,7 +785,7 @@ wxMac2UnixFilename (char *s) if (*s == ':') *s = '/'; else - *s = wxToLower (*s); // Case INDEPENDENT + *s = tolower(*s); // Case INDEPENDENT s++; } } @@ -830,7 +830,7 @@ wxDos2UnixFilename (char *s) *s = '/'; #ifdef __WXMSW__ else - *s = wxToLower (*s); // Case INDEPENDENT + *s = tolower(*s); // Case INDEPENDENT #endif s++; } @@ -980,8 +980,27 @@ bool wxRemoveFile(const wxString& file) 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__) @@ -995,6 +1014,7 @@ bool wxMkdir(const wxString& dir) #else return (mkdir(WXSTRINGCAST dir) == 0); #endif + } bool wxRmdir(const wxString& dir, int WXUNUSED(flags)) @@ -1279,9 +1299,6 @@ wxString wxFindFirstFile(const char *spec, int flags) if ( gs_hFileStruct == INVALID_HANDLE_VALUE ) { - wxLogSysError(_("Can not enumerate files in directory '%s'"), - path.c_str()); - result.Empty(); return result;