Auto creating hatch directories

This commit is contained in:
Michiel Broek
2005-12-03 15:09:06 +00:00
parent 033f9611dd
commit 13de17d424
3 changed files with 7 additions and 1 deletions

View File

@@ -107,6 +107,11 @@ int CheckHatch(char *temp)
char mask[256];
FILE *Tf;
if (mkdirs(temp, 0775) == FALSE) {
WriteError("Can't create dir %s", temp);
return FALSE;
}
fn = xstrcpy(strrchr(temp, '/') + 1);
while (temp[strlen(temp) -1] != '/')