Use of SplFileInfo instead of structure functions