Hrx.Entry (hrx v0.2.0)

Copy Markdown View Source

HRX entry

Summary

Functions

Create a new HRX entry for a file or directory.

Types

t()

@type t() :: %Hrx.Entry{contents: :directory | {:file, String.t()}, path: String.t()}

Functions

new(arg)

@spec new({:directory, String.t()} | {:file, {String.t()} | {String.t(), String.t()}}) ::
  t()

Create a new HRX entry for a file or directory.

Takes in a record based on the parsed format generated by Hrx.Parser.parse/2