BloombergLP::bdls::FilesystemUtil::getSymbolicLinkTarget

Load into result the target of the symbolic link at path.

Synopsis

Declared in <bdls_filesystemutil.h>

template<class STRING_TYPE>
static
int
getSymbolicLinkTarget(
    std::string* result,
    STRING_TYPE const& path);

Description

Same as getSymbolicLinkTarget(std::string *, const char *), but accepts a STRING_TYPE path.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
resultreceives the symbolic-link target
pathfilesystem path of the symbolic link