View Source ExAequo.File (ExAequo v0.6.6)

ExAequo.File

Summary

Functions

expands wc and zips each matching file into a list of {String.t, File.Stat.t}

read a file into lines

expands wc and zips each matching file into a list of {String.t, File.Stat.t}, then filters only the files from today

Types

@type date_tuple() ::
  {non_neg_integer(), 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12, 1..255}
@type lstat_result() :: {:ok, File.Stat.t()} | {:error, File.posix()}
@type param_type() :: Keyword.t() | map()
@type params_t() :: map() | Keyword.t()

Functions

@spec files(String.t()) :: [String.t()]
@spec files_with_stat(String.t()) :: Enumerable.t()

expands wc and zips each matching file into a list of {String.t, File.Stat.t}

read a file into lines

iex(0)> readlines(Path.join(~W[test fixtures a_simple_file.txt]))
["Line 1", "Line two", " Una terza linea"]
@spec today(String.t()) :: Enumerable.t()

expands wc and zips each matching file into a list of {String.t, File.Stat.t}, then filters only the files from today