We recommend using Visual Studio 2017

symlink_status Function

Retrieves the symbolic link status of a specified file.

template<class Path>
inline file_status symlink_status(
   const Path& Pval
);
template<class Path>
inline file_status symlink_status(
   const Path& Pval,
   error_code& Code
);

Pval

A Path object. Path can be either a path or a type that's derived from path.

Code

An error_code object.

A file_status object that indicates the symbolic-link status of the specified file.

If the stored symbolic-link status is not status_unknown, then the stored symbolic link-status is returned. Otherwise, the function determines the status from the operating system.

The second function assigns any error code that's associated with the operation to Code.

Header: filesystem

Namespace: std::tr2::sys

Show: