(PHP 5 >= 5.1.2)
The SplFileInfo class offers a high-level object oriented interface to information for an individual file.