HostKit.Runner.Files (host_kit v0.1.0-beta.1)

Copy Markdown View Source

Filesystem helpers over HostKit runners.

Summary

Functions

mkdir_p(path, opts \\ [])

@spec mkdir_p(
  Path.t(),
  keyword()
) :: :ok | {:error, term()}

read_file(path, opts \\ [])

@spec read_file(
  Path.t(),
  keyword()
) :: {:ok, binary()} | {:error, term()}

write_file(path, content, opts \\ [])

@spec write_file(Path.t(), iodata(), keyword()) :: :ok | {:error, term()}