From Jason Turner

[fs.op.remove_all]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp_3vldqyy/{from.md → to.md} +20 -0
tmp/tmp_3vldqyy/{from.md → to.md} RENAMED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Remove all <a id="fs.op.remove_all">[[fs.op.remove_all]]</a>
2
+
3
+ ``` cpp
4
+ uintmax_t remove_all(const path& p);
5
+ uintmax_t remove_all(const path& p, error_code& ec) noexcept;
6
+ ```
7
+
8
+ *Effects:* Recursively deletes the contents of `p` if it exists, then
9
+ deletes file `p` itself, as if by POSIX `remove()`.
10
+
11
+ [*Note 1*: A symbolic link is itself removed, rather than the file it
12
+ resolves to. — *end note*]
13
+
14
+ *Postconditions:* `!exists(symlink_status(p))`.
15
+
16
+ *Returns:* The number of files removed. The signature with argument `ec`
17
+ returns `static_cast< uintmax_t>(-1)` if an error occurs.
18
+
19
+ *Throws:* As specified in  [[fs.err.report]].
20
+