ENH: wow. On some Windows machine, trying to mkdir("C:") would fail miserably. WHy not in debug mode? Why not on other win32 machines. Who knows.
This commit is contained in:
parent
79a3807340
commit
bcad447ce2
@ -110,6 +110,13 @@ mkdirhier(char *path)
|
|||||||
if (dst[0] != '\0')
|
if (dst[0] != '\0')
|
||||||
strcat(dst, "/");
|
strcat(dst, "/");
|
||||||
strcat(dst, dirp);
|
strcat(dst, dirp);
|
||||||
|
|
||||||
|
#if defined(_WIN32)
|
||||||
|
/* On some Windows machine, trying to mkdir("C:") would fail miserably */
|
||||||
|
if (dst[strlen(dst) - 1] == ':')
|
||||||
|
continue;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (
|
if (
|
||||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
mkdir(dst) == -1
|
mkdir(dst) == -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user