##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::filesystem::directory_entry::status

From cppreference.com
< cpp‎ | experimental‎ | fs‎ | directory entry

file_status status() const; |  | (filesystem TS)
file_status status( error_code& ec ) const; |  | (filesystem TS)

Returns the potentially cached status of the entry.

The second version returns file_status::none and sets `ec` to an appropriate error code if an error occurs. Otherwise, `ec` is cleared with a call to ec.clear().

### [edit] Parameters

ec | - | error code to set

### [edit] Return value

The status of the file referred to by the entry.

### [edit] Exceptions

1) filesystem_error if an error occurs. The exception object is constructed with path of the directory entry as an argument.
2)
`noexcept` specification:
noexcept

### [edit] See also

| This section is incomplete

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs/directory_entry/status&oldid=68513"
Categories:

- unconditionally noexcept
- Todo without reason