Global persistence.cpp:505 open Can't open file in read mode

I completely missed that you’re dealing with OpenCV.js. sorry for giving you java code for testing the existence of a file.

you need to know where your code runs. does it run in the browser, or in the node server?

do you run this in any virtualization?

all those kinds of things. you need to check them, and you need to be aware of the amount of abstraction/complication you have.