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)
| 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 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected