you should pass the ``CURRENT_AS_PATHNAME`` flag, which will avoid the need for the ``array_map('strval', ...)`` call (and for the instantiation of all the SplFileInfo objects).