This topic has not yet been rated - Rate this topic

symlink_status Function

Visual Studio 2012

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 basic_path or a type that's derived from basic_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

Reference

Other Resources

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.