I am experiencing following error:
Target: /usr/lib/erlang/lib/et-1.6/ebin/Elixir.File.Error.beam. Function: get_file. Process: code_server.```
In my app I have multiple processes, one of them is downloading file from given URL and dumps each downloaded chunk into a separate file. I use following construct to dump chunk into a file:
`File.open!(path, [:binary, :write]) |> IO.binwrite(data) |> File.close`
And another process that reads these files with chunks uses `File.read!`. I thought that both reading and writing should release file handles straight away, but based on the error I doubt that this is the case.
Is there some resource release option that I am missing?
Thank you.