fix: catch filenotfound exception when rollover before upload
It seems that this issue happens when another thread (coroutine) processes the file and delete it before this one, then it tries to get the file. This issue should rarely happen, and is not easy to reproduce. readEventsContent will list all available files then open one by one with another catch of FileNotFoundException, so we can safely let it execute.
Checklist
[x] Does your PR title have the correct title format?
Summary
Issue: https://github.com/amplitude/Amplitude-Kotlin/issues/71
It seems that this issue happens when another thread (coroutine) processes the file and delete it before this one, then it tries to get the file. This issue should rarely happen, and is not easy to reproduce.
readEventsContent
will list all available files then open one by one with another catch of FileNotFoundException, so we can safely let it execute.Checklist