BAM.Sink.File (BAM v0.1.0)

Copy Markdown View Source

File sink. The caller chooses the path. This module overwrites an existing file at that path.

Summary

Types

t()

@type t() :: %BAM.Sink.File{closed: boolean(), fd: :file.fd() | nil, path: Path.t()}

Functions

open(path)

@spec open(Path.t()) :: {:ok, t()} | {:error, BAM.Error.t()}