Use to_string/1 instead of :binary.list_to_bin/1

This commit is contained in:
Egor Kislitsyn 2020-09-26 21:53:04 +04:00
parent 08972dd135
commit 8545d533dd
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805

View file

@ -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