[fs.dir.entry.mods] (original) (raw)
31 Input/output library [input.output]
31.12 File systems [filesystems]
31.12.10 Class directory_entry [fs.class.directory.entry]
31.12.10.3 Modifiers [fs.dir.entry.mods]
void assign(const filesystem::path& p);void assign(const filesystem::path& p, error_code& ec);
Effects: Equivalent to path-object = p, then refresh() or refresh(ec), respectively.
If an error occurs, the values of any cached attributes are unspecified.
void replace_filename(const filesystem::path& p);void replace_filename(const filesystem::path& p, error_code& ec);
Effects: Equivalent to path-object.replace_filename(p), then refresh() or refresh(ec), respectively.
If an error occurs, the values of any cached attributes are unspecified.
void refresh();void refresh(error_code& ec) noexcept;
Effects: Stores the current values of any cached attributes of the file p resolves to.
If an error occurs, an error is reported ([fs.err.report]) and the values of any cached attributes are unspecified.