HostKit.Resources.File (host_kit v0.1.0-beta.0)

Copy Markdown View Source

Desired file content with ownership and mode.

Summary

Types

t()

@type t() :: %HostKit.Resources.File{
  content: iodata() | nil,
  depends_on: [term()],
  group: String.t() | nil,
  meta: map(),
  mode: non_neg_integer() | nil,
  owner: String.t() | nil,
  path: String.t()
}

Functions

id(file)

new(path, opts \\ [])

@spec new(
  String.t(),
  keyword()
) :: t()