std::filesystem::is_other

Header: <filesystem>

Checks if the given file status or path corresponds to a file of type other type. That is, the file exists, but is neither regular file, nor directory nor a symlink.

# Declarations

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

(since C++17)

bool is_other( const std::filesystem::path& p );

(since C++17)

bool is_other( const std::filesystem::path& p, std::error_code& ec ) noexcept;

(since C++17)

# Parameters

# Return value

true if the file indicated by p or if the type indicated s refers to a file that is not regular file, directory, or a symlink, false otherwise. The non-throwing overload returns false if an error occurs.

# Example

This section is incompleteReason: no example

# See also