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.
static
int
getSymbolicLinkTarget(
bsl::string* result,
char const* path);
Load the symbolic link target for the specified path into the specified result.
static
int
getSymbolicLinkTarget(
std::pmr::string* result,
char const* path);
Same as the overload taking bsl::string *.
static
int
getSymbolicLinkTarget(
std::string* result,
char const* path);
Same as getSymbolicLinkTarget(bsl::string *, const char *), but accepts a STRING_TYPE path.
template<class STRING_TYPE>
static
int
getSymbolicLinkTarget(
bsl::string* result,
STRING_TYPE const& path);
Same as getSymbolicLinkTarget(std::pmr::string *, const char *), but accepts a STRING_TYPE path.
template<class STRING_TYPE>
static
int
getSymbolicLinkTarget(
std::pmr::string* result,
STRING_TYPE const& path);
Same as getSymbolicLinkTarget(std::string *, const char *), but accepts a STRING_TYPE path.
template<class STRING_TYPE>
static
int
getSymbolicLinkTarget(
std::string* result,
STRING_TYPE const& path);
Created with MrDocs