aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/utils.ex
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-12-21 20:37:29 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-12-21 20:38:59 +0300
commit54c9db38c8035ecc115e136a09a3d991e426959a (patch)
tree496afddf614e826c2c76c7d69e3968a3c118e717 /lib/pleroma/utils.ex
parent67cb46e15dd5fa16da257a9b0e5166266d10c694 (diff)
parentc51e93978ea2aa0f2d5bcc43bf7c925b2590eece (diff)
downloadpleroma-54c9db38c8035ecc115e136a09a3d991e426959a.tar.gz
Merge branch 'develop' into issue/1383
Diffstat (limited to 'lib/pleroma/utils.ex')
-rw-r--r--lib/pleroma/utils.ex12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/pleroma/utils.ex b/lib/pleroma/utils.ex
new file mode 100644
index 000000000..8d36a0001
--- /dev/null
+++ b/lib/pleroma/utils.ex
@@ -0,0 +1,12 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
+defmodule Pleroma.Utils do
+ def compile_dir(dir) when is_binary(dir) do
+ dir
+ |> File.ls!()
+ |> Enum.map(&Path.join(dir, &1))
+ |> Kernel.ParallelCompiler.compile()
+ end
+end