forked from AkkomaGang/akkoma
Use to_string/1 instead of :binary.list_to_bin/1
This commit is contained in:
parent
08972dd135
commit
8545d533dd
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ def export(%__MODULE__{} = backup) do
|
||||||
:ok <- bookmarks(dir, backup.user),
|
:ok <- bookmarks(dir, backup.user),
|
||||||
{:ok, zip_path} <- :zip.create(String.to_charlist(dir <> ".zip"), @files, cwd: dir),
|
{:ok, zip_path} <- :zip.create(String.to_charlist(dir <> ".zip"), @files, cwd: dir),
|
||||||
{:ok, _} <- File.rm_rf(dir) do
|
{:ok, _} <- File.rm_rf(dir) do
|
||||||
{:ok, :binary.list_to_bin(zip_path)}
|
{:ok, to_string(zip_path)}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue