[#BloombergLP-bdls-FilesystemUtil-getSymbolicLinkTarget-0fb] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::getSymbolicLinkTarget :relfileprefix: ../../../ :mrdocs: `getSymbolicLinkTarget` overloads == Synopses Declared in `<bdls_filesystemutil.h>` 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`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-06.adoc[getSymbolicLinkTarget]( xref:bsl/string.adoc[bsl::string]* result, char const* path); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-06.adoc[_» more..._]# Load the symbolic link target for the specified `path` into the specified `result`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-05.adoc[getSymbolicLinkTarget]( std::pmr::string* result, char const* path); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-05.adoc[_» more..._]# Same as the overload taking `bsl::string *`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-049.adoc[getSymbolicLinkTarget]( std::string* result, char const* path); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-049.adoc[_» more..._]# Same as `getSymbolicLinkTarget(bsl::string *, const char *)`, but accepts a `STRING_TYPE` path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_TYPE> static int xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-0fc.adoc[getSymbolicLinkTarget]( xref:bsl/string.adoc[bsl::string]* result, STRING_TYPE const& path); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-0fc.adoc[_» more..._]# Same as `getSymbolicLinkTarget(std::pmr::string *, const char *)`, but accepts a `STRING_TYPE` path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_TYPE> static int xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-0b.adoc[getSymbolicLinkTarget]( std::pmr::string* result, STRING_TYPE const& path); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-0b.adoc[_» more..._]# Same as `getSymbolicLinkTarget(std::string *, const char *)`, but accepts a `STRING_TYPE` path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_TYPE> static int xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-042.adoc[getSymbolicLinkTarget]( std::string* result, STRING_TYPE const& path); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/getSymbolicLinkTarget-042.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#