BloombergLP::bdls::FilesystemUtil::isSymbolicLink

Return true if a symbolic link currently exists at path.

Synopsis

Declared in <bdls_filesystemutil.h>

static
bool
isSymbolicLink(char const* path);

Description

Return true if there currently exists a symbolic link at the specified path, and false otherwise. Windows directory junctions are treated as directory symbolic links. 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 symbolic link, and false otherwise

Parameters

NameDescription
pathfilesystem path to test