midas/node/file_system

Functions

pub fn create_directory_all(dir: String) -> Result(Nil, Snag)
pub fn current_directory() -> Result(String, Snag)
pub fn get_files(dir: String) -> Result(List(String), Snag)
pub fn read(filename: String) -> Result(BitArray, Snag)
pub fn read_directory(dir: String) -> Result(List(String), Snag)
pub fn read_directory_content(
  dir: String,
) -> Result(List(#(String, BitArray)), Snag)
pub fn read_json(
  filename: String,
  decoder: fn(Dynamic) -> Result(a, List(DecodeError)),
) -> Result(a, Snag)
pub fn write(
  filename: String,
  bytes: BitArray,
) -> Result(Nil, Snag)
Search Document