Thanks! But it doesn't compile. (edit: seems it needs to be compiled under Linux!)
Could you check this code (src\util.cpp) in your text editor? (mkdir is called recursively, so far so good.)
But the 0755 (makedir(DirName, 0755)) doesn't make sense to me. Might be an untranslated unicode char.
bool Util::mkdir(const char *path, bool dirflag)
{
char DirName[256];
strcpy(DirName, path);
for(int t = 0; t < strlen(DirName); t++)
{
if(DirName[t] == '\\')
DirName[t] = '/';
}
int len = strlen(DirName);
if(dirflag && DirName[len-1] != '/')
strcat(DirName, "/");
len = strlen(DirName);
for(int i = 1; i<len; i++)
{
if(DirName[i]=='/')
{
DirName[i] = 0;
if(access(DirName, 0) != 0)
{
if(::mkdir(DirName, 0755) == -1)
{
cout << "[Util]mkdir failed: " << DirName << endl;
return false;
}
}
DirName[i] = '/';
}
}
return true;
}