This function was introduced at a time where some GDAL versions didn't have VSIReadDirRecursive(). Since we now require GDAL 2.1, this is safe to use plain VSIReadDirRecursive1()