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