std::filesystem::directory_entry::replace_filename

std::filesystem::directory_entry::replace_filename

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.

Parameters

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

Return value

(none).

Exceptions

Example

See also

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/filesystem/directory_entry/replace_filename

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部