resource public \Bitrix\Main\IO\Path::getExtension( string $path );
Static method gets path and returns file extension.