Use SplFileInfo::isFile() method for checking if path is a file
Use SplFileInfo::isFile() method for checking if path is a file

DirectoryLister/DirectoryLister,DirectoryLister/DirectoryLister,DirectoryLister/DirectoryLister,DirectoryLister/DirectoryLister