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

Name

Description

path

filesystem path to test

followLinksFlag

whether to follow symbolic links

Created with MrDocs