jazz
jazz copied to clipboard
fs entries is working randomly
Sometimes it works and some it doesn't, seems to be random at each call of the function.
Apparently the rust internal function is sometimes failing, making it return nil instead of an iterator function, and then lua fails because of it.
It wasn't failing randomly, it was returning nil when the directory didn't exist. Now after https://github.com/foundpatterns/torchbear/commit/5692bdca8b2e459c0f027f8382dcfa82c94acba6 it errors. It obviously cannot iterate entries in a non existing directory.
https://github.com/foundpatterns/torchbear/commit/5692bdca8b2e459c0f027f8382dcfa82c94acba6