Hrx.Archive.read

You're seeing just the function read, go back to Hrx.Archive module for more information.

Specs

read(t(), String.t()) :: {:ok, String.t()} | {:error, :enoent}

Read a file from the archive

{:ok, contents} = Hrx.Archive.read(archive, "dir/my-file.txt")
{:error, :enoent} = Hrx.Archive.read(archive, "non-existant-file.txt")