Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHARGUERAUD Arthur
cfml
Commits
7e3d0bd0
Commit
7e3d0bd0
authored
Nov 06, 2014
by
POTTIER Francois
Browse files
Use atomic "mkdir -p" to create the directory "output".
parent
948e952f
Changes
1
Hide whitespace changes
Inline
Side-by-side
generator/main.ml
View file @
7e3d0bd0
...
...
@@ -72,7 +72,7 @@ let _ =
let
debugdir
=
Filename
.
concat
dirname
"output"
in
let
debugdirBase
=
Filename
.
concat
debugdir
(
String
.
capitalize
basename
)
in
(* FAILURE ON WINDOWS *)
let
cmd
=
Printf
.
sprintf
"
test -d %s ||
mkdir %s"
debugdir
debugdir
in
let
cmd
=
Printf
.
sprintf
"mkdir
-p
%s"
debugdir
in
begin
try
ignore
(
Sys
.
command
cmd
)
with
_
->
Printf
.
printf
"Could not create debug directory
\n
"
end
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment