From 8b5aca96191e6741cd10fff594d7923d3ea7e9bb Mon Sep 17 00:00:00 2001 From: TudbuT Date: Fri, 18 Oct 2024 14:50:28 +0200 Subject: [PATCH] fix fs error while unpacking frontends --- lib/pleroma/frontend.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pleroma/frontend.ex b/lib/pleroma/frontend.ex index dc9d55646..100490c70 100644 --- a/lib/pleroma/frontend.ex +++ b/lib/pleroma/frontend.ex @@ -79,6 +79,10 @@ def unzip(zip, dest) do new_file_path = Path.join(dest, path) + new_file_path + |> Path.dirname() + |> File.rm() + new_file_path |> Path.dirname() |> File.mkdir_p!()