We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d22a0ac commit d2df76dCopy full SHA for d2df76d
lib/sips_downloader/episode_downloader.ex
@@ -22,7 +22,7 @@ defmodule SipsDownloader.EpisodeDownloader do
22
defp process_download(work = {name, _url}, state = %{fh: nil, dir: dir}) do
23
receive do
24
%HTTPoison.AsyncStatus{code: 200} ->
25
- {:ok, fh} = Path.join(dir, name) |> Kernel.<>(".tmp") |> File.open([:write, :append])
+ {:ok, fh} = Path.expand(dir) |> Path.join(name) |> Kernel.<>(".tmp") |> File.open([:write, :append])
26
process_download(work, %{state | fh: fh})
27
28
%HTTPoison.AsyncStatus{code: 302} ->
0 commit comments