Namespaces
Variants
Actions

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

From cppreference.com
 
C++
 
Filesystem library
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.

Contents

[edit] Parameters

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

[edit] Return value

(none)

[edit] Exceptions

[edit] See also

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant