Packages

Downloads remote file and stores it in the filesystem

Current section

4 Versions

Jump to

Compare versions

3 files changed
+3 additions
-5 deletions
  @@ -15,4 +15,4 @@
15 15 {<<"name">>,<<"httpoison">>},
16 16 {<<"optional">>,false},
17 17 {<<"requirement">>,<<">= 0.9.0">>}]]}.
18 - {<<"version">>,<<"0.0.1">>}.
18 + {<<"version">>,<<"0.0.2">>}.
  @@ -42,10 +42,8 @@ defmodule Download do
42 42 do: { :ok, path }
43 43 end
44 44
45 - @project_path System.cwd()
46 -
47 45 defp get_default_download_path(file_name) do
48 - @project_path <> "/" <> file_name
46 + System.cwd() <> "/" <> file_name
49 47 end
50 48
51 49 defp create_file(path), do: File.open(path, [:write, :exclusive])
  @@ -2,7 +2,7 @@ defmodule Download.Mixfile do
2 2 use Mix.Project
3 3
4 4 @project_url "https://github.com/asiniy/download"
5 - @version "0.0.1"
5 + @version "0.0.2"
6 6
7 7 def project do
8 8 [