BloombergLP::bdls::FilesystemUtil::isDirectory

Return whether path names an existing directory.

Synopsis

Declared in <bdls_filesystemutil.h>

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

Description

Same as the overload taking const char *.

Return Value

true if path is a directory, and false otherwise

Parameters

NameDescription
pathfilesystem path to test
followLinksFlagwhether to follow symbolic links