Skip to content

Commit

Permalink
Merge pull request #18 from appunite/fix-local-storage-directory-crea…
Browse files Browse the repository at this point in the history
…tion

Fix local storage directory creation
  • Loading branch information
hauleth committed Oct 11, 2018
2 parents 997aa08 + fea3cda commit 0153a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imager/store/local.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ defmodule Imager.Store.Local do
dir = Keyword.get(opts, :dir, ".")
full_path = Path.join(dir, path)

:ok = File.mkdir_p!(dir)
:ok = full_path |> Path.dirname() |> File.mkdir_p!()

{:ok, file} = :file.open(full_path, [:write, :raw])

Expand Down

0 comments on commit 0153a97

Please sign in to comment.