Hrx.Entry (hrx v0.1.0) View Source

HRX entry

Link to this section Summary

Functions

Create a new HRX entry for a file or directory.

Link to this section Types

Specs

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

Link to this section Functions

Specs

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