다음을 통해 공유


basic_directory_entry::status Method

Retrieves the file name status.

file_status status() const;
file_status status(
   error_code& Code
) const;

Parameters

Return Value

If the stored status is not status_unknown, then the stored status is returned. Otherwise, if the symbolic link status is not status_unknown or symlink_file, then the symbolic link status is returned. Otherwise, the method determines the status from the operating system.

Any errors that are associated with the operation are stored in Code.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_directory_entry Class

<filesystem>