tmp/tmpoc3qps6u/{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);
|
| 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 |
+
*Ensures:* `exists(symlink_status(p))` is `false`.
|
| 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 |
+
|