[#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`. == Synopsis Declared in `<bdls_filesystemutil.h>` [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. If there is a symbolic link at `path`, follow it only if the optionally specified `followLinksFlag` is `true` (otherwise return `false`). Platform‐specific note: On Windows, a "shortcut" is not a symbolic link. The parameterized `STRING_TYPE` must be one of `bsl::string`, `std::string`, `std::pmr::string` (if supported), `bsl::string_view`, or `bslstl::StringRef`. == 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]#