Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

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

Changes the filename of the directory entry.

NotebookLM
void replace_filename( const path& p );
(filesystem TS)

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.

Parameters

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

Return value

(none)

Exceptions

This section is incomplete

See also

This section is incomplete

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.