touch_grass/file_system/write_file

Write a file or overwrite an existing file.

The platform will decide if intermediate files will be created.

Types

pub type Input {
  Input(path: String, contents: BitArray)
}

Constructors

  • Input(path: String, contents: BitArray)

Values

pub fn decode(
  input: value.Value(a, b),
) -> Result(Input, break.Reason(a, b))
pub fn encode(result: Result(Nil, String)) -> value.Value(a, b)
Search Document