Skip to content

Commit

Permalink
fix: ensure dets does a mkdir_p at startup incase directory doesn't e…
Browse files Browse the repository at this point in the history
…xist
  • Loading branch information
MikaAK committed Mar 8, 2024
1 parent 26c9d8f commit 4418f0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cache/dets.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ defmodule Cache.DETS do
file_path = opts[:file_path]
|> to_string
|> create_file_name(table_name)
|> tap(&File.mkdir_p!(Path.dirname(&1)))
|> String.to_charlist

opts =
Expand Down

0 comments on commit 4418f0b

Please sign in to comment.