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

Method create

euralios_std/src/fs.rs:161–163  ·  view source on GitHub ↗

Sets the option for creating a new file. This option indicates whether a new file will be created if the file does not yet already exist. In order for the file to be created, [`write`] or [`append`] access must be used. [`write`]: #method.write [`append`]: #method.append # Examples ```no_run use std::fs::OpenOptions; let file = OpenOptions::new().write(true).create(true).open("foo.txt"); ```

(&mut self, create: bool)

Source from the content-addressed store, hash-verified

159 /// let file = OpenOptions::new().write(true).create(true).open("foo.txt");
160 /// ```
161 pub fn create(&mut self, create: bool) -> &mut OpenOptions {
162 self.create = create; self
163 }
164
165 /// Opens a file at `path` with the options specified by `self`.
166 ///

Callers

nothing calls this directly

Calls 7

current_dirFunction · 0.85
is_relativeMethod · 0.80
as_os_strMethod · 0.80
openFunction · 0.70
FileClass · 0.70
as_refMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected