summaryrefslogtreecommitdiff
path: root/src/util/File.c
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-09-13 13:14:33 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-09-13 13:14:33 +0000
commita3c4117fa845468cceeeb02cc754c505240b8060 (patch)
treebecc7b64ed1783818930f6eebb2d2b6dc5e58c1d /src/util/File.c
parent3a0b2dd507bc5b00696d897d7fd5b12f5d3f724c (diff)
Undo using MKDIRFLAGS until it also works under NT.
Commented the code out and added a small description. git-svn-id: http://svn.cactuscode.org/flesh/trunk@900 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/File.c')
-rw-r--r--src/util/File.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/File.c b/src/util/File.c
index 8372bbd3..6f95aeb3 100644
--- a/src/util/File.c
+++ b/src/util/File.c
@@ -18,7 +18,22 @@ int CCTK_mkdir(char *dir)
command = (char *)malloc(1024*sizeof(char));
+ /***
+ TR 13/09/99: disabled use of MKDIRFLAGS until it also works for NT
+ This means either
+ - we make sure to always use the bash's mkdir command (which accepts
+ option '-p')
+ - call the dos shell with MKDIRFLAGS set to an empty string
+ - use the POSIX mkdir routine
+ The disadvantage for calling mkdir without '-p' under UNIX is now
+ that we can always create one subdirectory only which needs to be
+ relative to an existing directory.
+ ***/
+#if 0
sprintf(command, MKDIR MKDIRFLAGS " %s",dir);
+#else
+ sprintf(command, MKDIR " %s",dir);
+#endif
message = (char *)malloc(1024*sizeof(char));
sprintf(message,"Creating directory: \"%s\"",command);