[#BloombergLP-bdls-FilesystemUtil-exists-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::exists :relfileprefix: ../../../ :mrdocs: Return `true` if a file or directory currently exists at `path`. == Synopsis Declared in `<bdls_filesystemutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool exists(char const* path); ---- == Description Return `true` if there currently exists a file or directory at the specified `path`, and `false` otherwise. If `path` is a symlink, the result of this function is platform dependent. On POSIX/Unix platforms this method dereferences symlinks, while on Windows it does not. 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 a file or directory exists at `path`, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *path* | filesystem path to test |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#