ΒΆstd::error_code is_directory(
    const llvm::Twine& path,
    bool& result)

Description

Is path a directory?

Declared at: llvm/include/llvm/Support/FileSystem.h:558

Parameters

const llvm::Twine& path
Input path.
bool& result
Set to true if \a path is a directory (after following symlinks, false if it is not. Undefined otherwise.

Returns

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