Create images directory when starting image_uploader

pull/974/head
connor rigby 2019-07-15 13:50:52 -07:00 committed by Connor Rigby
parent ea6c3663db
commit 8b2ac2935e
No known key found for this signature in database
GPG Key ID: 29A88B24B70456E0
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@ defmodule FarmbotExt.API.ImageUploader do
end
def init([]) do
_ = File.rm_rf!(@images_path)
_ = File.mkdir_p!(@images_path)
{:ok, %{}, 0}
end