fuchsia_fs::file

Function write_in_namespace

Source
pub async fn write_in_namespace<D>(
    path: &str,
    data: D,
) -> Result<(), WriteNamedError>
where D: AsRef<[u8]>,
Expand description

Write the given data into a file at path in the current namespace. The path must be an absolute path.

  • If the file already exists, replaces existing contents.
  • If the file does not exist, creates the file.