Load, into the specified result, the target of the symbolic link at the specified path. Return 0 on success, and a non‐zero value otherwise. For example, this function will return an error if path does not refer to a symbolic link. Windows directory junctions are treated as directory symbolic links. If path is a relative path, it is evaluated against the current working directory. 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>

static
int
getSymbolicLinkTarget(
    bsl::string* result,
    char const* path);

Created with MrDocs