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 @@ defmodule Pleroma.Frontend do new_file_path = Path.join(dest, path) + new_file_path + |> Path.dirname() + |> File.rm() + new_file_path |> Path.dirname() |> File.mkdir_p!()