std::filesystem::status_known

Header: <filesystem>

Checks if the given file status is known, equivalent to s.type() != file_type::none.

# Declarations

bool status_known( std::filesystem::file_status s ) noexcept;

(since C++17)

# Parameters

# Return value

true if the given file status is a known file status.

# Notes

Despite the name, the function checks for the file status of file_type::none (meaning an error occurred), not file_type::unknown (meaning file exists, but its type cannot be determined).

# See also