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

Description

Is path a regular file?

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

Parameters

const llvm::Twine& path
Input path.
bool& result
Set to true if \a path is a regular file (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.