/** * Recursively check when the dir and all * subfolders have been modified for the last time. * * @param string $dir The path of the directory * @param string $format * @return int */ public static function modified($dir, $format = null) { // It's easier to handle this with the Folder class $object = new Folder($dir); return $object->modified($format); }