##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::filesystem::directory_entry::replace_filename

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

void replace_filename( const std::filesystem::path& p ); |  | (since C++17)

Changes the filename of the directory entry.

Effectively sets path to path().parent_path() / p.

This function does not commit any changes to the filesystem.

### [edit] Parameters

p | - | the path to append to the parent path of the currently stored path

### [edit] Return value

(none)

### [edit] Exceptions

| This section is incomplete

### [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/replace_filename&oldid=84980"
Categories:

- Todo without reason
- Todo no example