[#BloombergLP-bdls-FilesystemUtil-isRegularFile-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::isRegularFile :relfileprefix: ../../../ :mrdocs: Return `true` if there currently exists a regular file 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` as the symbolic link itself is not a regular file irrespective of the file to which it points). Platform‐specific note: On POSIX, this is a positive test on the "regular file" mode; on Windows, this is a negative test on the "directory" attribute, i.e., on Windows, everything that exists and is not a directory is a regular file. The parameterized `STRING_TYPE` must be one of `bsl::string`, `std::string`, `std::pmr::string` (if supported), `bsl::string_view`, or `bslstl::StringRef`. == Synopsis Declared in `<bdls_filesystemutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool isRegularFile( char const* path, bool followLinksFlag = false); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#