[#BloombergLP-bdls-FilesystemUtil-isDirectory-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::isDirectory
:relfileprefix: ../../../
:mrdocs:

Return `true` if a directory currently exists at the specified `path`&period;

== Synopsis

Declared in `&lt;bdls&lowbar;filesystemutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isDirectory(
    char const* path,
    bool followLinksFlag = false);
----

== Description

Return `true` if there currently exists a directory at the specified `path`, and `false` otherwise&period; If there is a symbolic link at `path`, follow it only if the optionally specified `followLinksFlag` is `true` (otherwise return `false`)&period; Platform&hyphen;specific note&colon; On Windows, a &quot;shortcut&quot; is not a symbolic link&period; The parameterized `STRING&lowbar;TYPE` must be one of `bsl&colon;&colon;string`, `std&colon;&colon;string`, `std&colon;&colon;pmr&colon;&colon;string` (if supported), `bsl&colon;&colon;string&lowbar;view`, or `bslstl&colon;&colon;StringRef`&period;

== Return Value

`true` if `path` is a directory, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *path*
| filesystem path to test
| *followLinksFlag*
| whether to follow symbolic links
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
