diff options
author | rinpatch <rinpatch@sdf.org> | 2020-01-30 22:16:55 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-01-30 22:16:55 +0300 |
commit | 5b62acf6e9a38f8d14a9fb37cc85e646fb0169e3 (patch) | |
tree | 6677ba80418ffd34a78cba75498f2c1ab48ba14c /lib/pleroma/utils.ex | |
parent | 45180d4c6058f790475d8ff28018c912db105082 (diff) | |
parent | 946de2299cccebac6718e3a132397ff5c06c67ee (diff) | |
download | pleroma-5b62acf6e9a38f8d14a9fb37cc85e646fb0169e3.tar.gz |
Merge branch 'develop' into fix/disable-rate-limiter-for-socket-localhost
Diffstat (limited to 'lib/pleroma/utils.ex')
-rw-r--r-- | lib/pleroma/utils.ex | 12 |
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 |