std::filesystem::directory_entry::replace_filename

From cppreference.com
 
 
 
 
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.

Contents

[edit] Parameters

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

[edit] Return value

(none)

[edit] Exceptions

[edit] Example

[edit] See also