Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / lib / pleroma / utils.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Utils do
6 def compile_dir(dir) when is_binary(dir) do
7 dir
8 |> File.ls!()
9 |> Enum.map(&Path.join(dir, &1))
10 |> Kernel.ParallelCompiler.compile()
11 end
12 end