Namespaces
Variants
Actions

std::filesystem::is_symlink

From cppreference.com
 
 
 
Defined in header <filesystem>
bool is_symlink( std::filesystem::file_status s ) noexcept;
(1) (since C++17)
bool is_symlink( const std::filesystem::path& p );
(2) (since C++17)
bool is_symlink( const std::filesystem::path& p, std::error_code& ec ) noexcept;
(3) (since C++17)

Checks if the given file status or path corresponds to a symbolic link, as if determined by the POSIX S_IFLNK.

1) Equivalent to s.type() == file_type::symlink.
2,3) Equivalent to is_symlink(symlink_status(p)) or is_symlink(symlink_status(p, ec)).

Contents