Is path a directory?

Synopsis

Declared in <llvm/Support/FileSystem.h>

std::error_code
is_directory(
    Twine const& path,
    bool& result);

Return Value

errc::success if result has been successfully set, otherwise a platform‐specific error_code.

Parameters

Name

Description

path

Input path.

result

Set to true if path is a directory (after following symlinks, false if it is not. Undefined otherwise.

Created with MrDocs