[#BloombergLP-bdls-FilesystemUtil-getSymbolicLinkTarget-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::getSymbolicLinkTarget
:relfileprefix: ../../../
:mrdocs:

Load, into the specified `result`, the target of the symbolic link at the specified `path`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; For example, this function will return an error if `path` does not refer to a symbolic link&period; Windows directory junctions are treated as directory symbolic links&period; If `path` is a relative path, it is evaluated against the current working directory&period; The parameterized `STRING&lowbar;TYPE` must be one of `bsl&colon;&colon;string`, `std&colon;&colon;string`, `std&colon;&colon;pmr&colon;&colon;string` (if supported), `bsl&colon;&colon;string&lowbar;view`, or `bslstl&colon;&colon;StringRef`&period;

== Synopsis

Declared in `&lt;bdls&lowbar;filesystemutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getSymbolicLinkTarget(
    xref:bsl/string.adoc[bsl::string]* result,
    char const* path);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
