Create images directory when starting image_uploader
parent
ea6c3663db
commit
8b2ac2935e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue