/** * Helper method. Return an appropriate CFile instance for a given filesystem object path. * * @static * @param string $filepath Path to the file. * @param bool $greedy If `True` file properties (such as 'Size', 'Owner', 'Permission', etc.) would be autoloaded * @return CFile */ public static function get($filepath, $greedy = false) { if (self::$_obj === null) { self::$_obj = new self(); } return self::$_obj->set($filepath, $greedy); }