Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
795ebdcb
Commit
795ebdcb
authored
5 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[server] don't try to re-create an existing directory
parent
838b709a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/server/doc.ml
+1
-1
1 addition, 1 deletion
src/plugins/server/doc.ml
with
1 addition
and
1 deletion
src/plugins/server/doc.ml
+
1
−
1
View file @
795ebdcb
...
@@ -164,7 +164,7 @@ let metadata page : json =
...
@@ -164,7 +164,7 @@ let metadata page : json =
let
pp_one_page
~
root
~
page
~
title
body
=
let
pp_one_page
~
root
~
page
~
title
body
=
let
full_path
=
Filepath
.
normalize
(
root
^
"/"
^
page
)
in
let
full_path
=
Filepath
.
normalize
(
root
^
"/"
^
page
)
in
let
dir
=
Filename
.
dirname
full_path
in
let
dir
=
Filename
.
dirname
full_path
in
Extlib
.
mkdir
~
parents
:
true
dir
0o755
;
if
not
(
Sys
.
file_exists
dir
)
then
Extlib
.
mkdir
~
parents
:
true
dir
0o755
;
try
try
let
chan
=
open_out
full_path
in
let
chan
=
open_out
full_path
in
let
fmt
=
Format
.
formatter_of_out_channel
chan
in
let
fmt
=
Format
.
formatter_of_out_channel
chan
in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment