basic_directory_entry::replace_leaf Method

Replaces the stored leaf value and updates the status of the stored file name.

void replace_leaf(
   const string_type& Str,
   file_status Statarg = file_status(),
   file_status Symstatarg = file_status()
);

Parameters

  • Str
    A string that contains the new value for the leaf.

  • Statarg
    A file_status object that represents the status of the file that is referenced by the stored file name.

  • Symstatarg
    A file_status object that represents the symbolic link status of the file that is reference by the stored file name.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_directory_entry Class

<filesystem>