BloombergLP::bdls::FilesystemUtil::getSymbolicLinkTarget

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

Synopses

Declared in <bdls_filesystemutil.h>

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

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

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

static
int
getSymbolicLinkTarget(
    std::pmr::string* result,
    char const* path);
» more...

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

static
int
getSymbolicLinkTarget(
    std::string* result,
    char const* path);
» more...

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

template<class STRING_TYPE>
static
int
getSymbolicLinkTarget(
    bsl::string* result,
    STRING_TYPE const& path);
» more...

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

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

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

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

Return Value

0 on success, and a non-zero value otherwise

Parameters

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