well, with your current switches, it should not return array unless there is a directory with a "failed" in the name.

so, I don't see the problem...
_________________________
!

download KiXnet