Tim,
... The failure doesn't make much sense to me. It would be nice to tell the client what might have gone wrong. Fixing the problem should not be hard. You're right. I personally spend a lot of time finding *why* things happen (or in most cases do *not* happen), although in many cases finding a workaround is not the problem.
When I use a function like adir(), I need to rely on its functionality. And if there are limitations, i need to know them and if possible, why they are.
Covering an error is not a good habit and it does not bring You any further in Your personal development and skills.
Sometimes there is pressure to find a (say *any*) working solution fast.
Anyway, when dealing with files, besides the adir() problem, there are a few other things that can lead to an error. So I prefer to pack these things in a Try ... catch block and try to really handle problems that can occur.
Still it would be interesting to find an answer to the weird behavior.