mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +00:00
Use to_string/1 instead of :binary.list_to_bin/1
This commit is contained in:
parent
08972dd135
commit
8545d533dd
|
@ -148,7 +148,7 @@ defmodule Pleroma.Backup do
|
|||
:ok <- bookmarks(dir, backup.user),
|
||||
{:ok, zip_path} <- :zip.create(String.to_charlist(dir <> ".zip"), @files, cwd: dir),
|
||||
{:ok, _} <- File.rm_rf(dir) do
|
||||
{:ok, :binary.list_to_bin(zip_path)}
|
||||
{:ok, to_string(zip_path)}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue