Second time i read dir arduino halts

Sorry, they got a close method.

How do I close these, they have no close-method.

But using it course more problems. I made "root" and "entry" global and I'm trying to tidy up before leaving sub.