fix fs error while unpacking frontends

This commit is contained in:
TudbuT 2024-10-18 14:50:28 +02:00
parent f101886709
commit 8b5aca9619
No known key found for this signature in database
GPG key ID: B3CF345217F202D3

View file

@ -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!()