##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::filesystem::directory_entry::path

From cppreference.com
< cpp‎ | filesystem‎ | directory entry

const std::filesystem::path& path() const; |  | (since C++17)
operator const std::filesystem::path& () const; |  | (since C++17)

Returns the full path the directory entry refers to.

### [edit] Parameters

(none)

### [edit] Return value

The full path the directory entry refers to.

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

| This section is incomplete

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/filesystem/directory_entry/path&oldid=91931"
Categories:

- unconditionally noexcept
- Todo no example
- Todo without reason

Hidden categories:

- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template