BloombergLP::bdls::FilesystemUtil::isRegularFile

Return true if a regular file currently exists at path.

Synopsis

Declared in <bdls_filesystemutil.h>

template<class STRING_TYPE>
static
bool
isRegularFile(
    STRING_TYPE const& path,
    bool followLinksFlag = false);

Description

Same as the overload taking const char *.

Return Value

true if path is a regular file, and false otherwise

Parameters

NameDescription
pathfilesystem path to test
followLinksFlagwhether to follow symbolic links