std::experimental::filesystem::is_symlink
From cppreference.com
< cpp | experimental | fs
| Defined in header <experimental/filesystem>
|
||
| bool is_symlink( file_status s ); |
(1) | (filesystem TS) |
| bool is_symlink( const path& p ); |
(2) | (filesystem TS) |
| bool is_symlink( const path& p, error_code& ec ); |
(3) | (filesystem TS) |
Checks if the given file status or path corresponds to a symbolic file.
1) Equivalent to s.type() == file_type::symlink.
2) Equivalent to is_symlink(status(p)).
3) Equivalent to is_symlink(status(p, ec)). Returns false and sets
ec to an appropriate error code if an error occurs. Otherwise, ec is cleared with a call to ec.clear().Contents |
[edit] Parameters
| s | - | file status to check |
| p | - | path to examine |
| ec | - | error code to store the error status to |
[edit] Return value
true if the given path or file status corresponds to a symbolic link, false otherwise.
[edit] Exceptions
1,3)
noexcept specification:
noexcept
2) Throws filesystem_error if an error occurs. The error is constructed with
p as an argument. The error code is set to an appropriate error code for the error that caused the failure.[edit] See also
| This section is incomplete |