Current section
Files
Jump to
Current section
Files
lib/search_ex.ex
defmodule SearchEx do
@data_path "/home/aleak/zz/search_ex/_data/worklog"
def main(_) do
IO.inspect "FILECOUNT IS #{file_count}"
List.first file_list
|> File.read
|> String.split(~r/\-\-\-/)
end
defp file_list do
File.cd @data_path
{_, list} = File.ls
list
end
defp file_count do
file_list
|> Enum.count
end
end