Changeset View
Changeset View
Standalone View
Standalone View
lib/lsg_web/controllers/irc_controller.ex
Context not available. | |||||
end | end | ||||
defp data() do | defp data() do | ||||
dir = Application.get_env(:lsg, :data_path) <> "/irc.txt/" | dir = Application.get_env(:nola, :data_path) <> "/irc.txt/" | ||||
Path.wildcard(dir <> "/*.txt") | Path.wildcard(dir <> "/*.txt") | ||||
|> Enum.reduce(%{}, fn(path, m) -> | |> Enum.reduce(%{}, fn(path, m) -> | ||||
path = String.split(path, "/") | path = String.split(path, "/") | ||||
Context not available. |