std::experimental::filesystem::directory_entry::replace_filename - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::filesystem::directory_entry::replace_filename

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

void replace_filename( const path& p, file_status status = file_status(), file_status symlink_status = file_status() ); |  | (filesystem TS)

Changes the filename and the cached file and symlink status 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
status | - | new cached file status
symlink_status | - | new cached symlink status

### [edit] Return value

(none)

### [edit] Exceptions

| This section is incomplete

### [edit] See also

| This section is incomplete

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs/directory_entry/replace_filename&oldid=68511"
Category:

- Todo without reason