MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / append

Method append

euralios_std/src/fs.rs:121–123  ·  view source on GitHub ↗

Sets the option for the append mode. This option, when true, means that writes will append to a file instead of overwriting previous contents. Note that setting `.write(true).append(true)` has the same effect as setting only `.append(true)`. For most filesystems, the operating system guarantees that all writes are atomic: no writes get mangled because another process writes at the same time. On

(&mut self, append: bool)

Source from the content-addressed store, hash-verified

119 /// let file = OpenOptions::new().append(true).open("foo.txt");
120 /// ```
121 pub fn append(&mut self, append: bool) -> &mut OpenOptions {
122 self.append = append; self
123 }
124
125 /// Sets the option for truncating a previous file.
126 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected