tmp/tmpg8y398_a/{from.md → to.md}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
file_status filesystem::status(const path& p);
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:* As if:
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
error_code ec;
|
| 11 |
file_status result = status(p, ec);
|
| 12 |
if (result.type() == file_type::none)
|
|
@@ -25,17 +25,17 @@ cause an exception to be thrown. — *end note*]
|
|
| 25 |
``` cpp
|
| 26 |
file_status filesystem::status(const path& p, error_code& ec) noexcept;
|
| 27 |
```
|
| 28 |
|
| 29 |
*Effects:* If possible, determines the attributes of the file `p`
|
| 30 |
-
resolves to, as if by using POSIX `stat
|
| 31 |
`struct stat`. If, during attribute determination, the underlying file
|
| 32 |
system API reports an error, sets `ec` to indicate the specific error
|
| 33 |
reported. Otherwise, `ec.clear()`.
|
| 34 |
|
| 35 |
[*Note 2*: This allows users to inspect the specifics of underlying API
|
| 36 |
-
errors even when the value returned by `status
|
| 37 |
`file_status(file_type::none)`. — *end note*]
|
| 38 |
|
| 39 |
Let `prms` denote the result of `(m & perms::mask)`, where `m` is
|
| 40 |
determined as if by converting the `st_mode` member of the obtained
|
| 41 |
`struct stat` to the type `perms`.
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
file_status filesystem::status(const path& p);
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* As if by:
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
error_code ec;
|
| 11 |
file_status result = status(p, ec);
|
| 12 |
if (result.type() == file_type::none)
|
|
|
|
| 25 |
``` cpp
|
| 26 |
file_status filesystem::status(const path& p, error_code& ec) noexcept;
|
| 27 |
```
|
| 28 |
|
| 29 |
*Effects:* If possible, determines the attributes of the file `p`
|
| 30 |
+
resolves to, as if by using POSIX `stat` to obtain a POSIX
|
| 31 |
`struct stat`. If, during attribute determination, the underlying file
|
| 32 |
system API reports an error, sets `ec` to indicate the specific error
|
| 33 |
reported. Otherwise, `ec.clear()`.
|
| 34 |
|
| 35 |
[*Note 2*: This allows users to inspect the specifics of underlying API
|
| 36 |
+
errors even when the value returned by `status` is not
|
| 37 |
`file_status(file_type::none)`. — *end note*]
|
| 38 |
|
| 39 |
Let `prms` denote the result of `(m & perms::mask)`, where `m` is
|
| 40 |
determined as if by converting the `st_mode` member of the obtained
|
| 41 |
`struct stat` to the type `perms`.
|