From Jason Turner

[fs.op.create_directories]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpmrlzyzvh/{from.md → to.md} +20 -0
tmp/tmpmrlzyzvh/{from.md → to.md} RENAMED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Create directories <a id="fs.op.create_directories">[[fs.op.create_directories]]</a>
2
+
3
+ ``` cpp
4
+ bool create_directories(const path& p);
5
+ bool create_directories(const path& p, error_code& ec) noexcept;
6
+ ```
7
+
8
+ *Effects:* Establishes the postcondition by calling `create_directory()`
9
+ for any element of `p` that does not exist.
10
+
11
+ *Postconditions:* `is_directory(p)`.
12
+
13
+ *Returns:* `true` if a new directory was created, otherwise `false`. The
14
+ signature with argument `ec` returns `false` if an error occurs.
15
+
16
+ *Throws:* As specified in  [[fs.err.report]].
17
+
18
+ *Complexity:* 𝑂(n) where *n* is the number of elements of `p` that do
19
+ not exist.
20
+