tmp/tmpl2aqwsbq/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Symlink status <a id="fs.op.symlink.status">[[fs.op.symlink.status]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
file_status symlink_status(const path& p);
|
| 5 |
+
file_status symlink_status(const path& p, error_code& ec) noexcept;
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
*Effects:* Same as `status()`, above, except that the attributes of `p`
|
| 9 |
+
are determined as if by using POSIX `lstat()` to obtain a POSIX
|
| 10 |
+
`struct stat`.
|
| 11 |
+
|
| 12 |
+
Let `prms` denote the result of `(m & perms::mask)`, where `m` is
|
| 13 |
+
determined as if by converting the `st_mode` member of the obtained
|
| 14 |
+
`struct stat` to the type `perms`.
|
| 15 |
+
|
| 16 |
+
*Returns:* Same as `status()`, above, except that if the attributes
|
| 17 |
+
indicate a symbolic link, as if by POSIX `S_ISLNK`, returns
|
| 18 |
+
`file_status(file_type::symlink, prms)`. The signature with argument
|
| 19 |
+
`ec` returns `file_status(file_type::none)` if an error occurs.
|
| 20 |
+
|
| 21 |
+
*Remarks:* Pathname resolution terminates if `p` names a symbolic link.
|
| 22 |
+
|
| 23 |
+
*Throws:* As specified in [[fs.err.report]].
|
| 24 |
+
|