관리-도구
편집 파일: other.cpython-311.pyc
� ��g� � � � d Z ddlZddlZddlZddlZddlmZ ddlmZ ej e � � Zd� Zdedee fd�Zd � Zd � ZdS )u This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see <https://www.imunify360.com/legal/eula> � N)�Path)�Optionalc # �� K � |dk rt d� � �t | � � }t t j ||� � � � x}r*|V � t t j ||� � � � x}�(d S d S )N� zn must be at least one)� ValueError�iter�tuple� itertools�islice)�iterable�n�it�batchs �O/opt/imunify360/venv/lib/python3.11/site-packages/imav/migration_utils/other.py�batchedr s� � � � ��1�u�u��1�2�2�2� �h���B���)�"�a�0�0�1�1� 1�%� ����� ��)�"�a�0�0�1�1� 1�%� � � � � � �path�returnc �\ � | � � � S # t $ r}Y d }~d S d }~ww xY w)N)�owner� Exception)r �es r � get_ownerr ) sA � ���z�z�|�|���� � � ��t�t�t�t�t��������s � � +�+c �4 � dd l } n# t $ r Y dS w xY wdS )Nr FT)�im360�ImportError)r s r � im360_presentr 0 s9 � ��������� � � ��u�u������4s � � �c � � � t j � � � � fd�� � }t j � � � � fd�� � }t j � � � r|n|S )Nc � �x �K � t � � rt � d� � d S �| i |��� d {V ��S �Nz,Imunify360 is already installed. Skipping...�r �logger�info��args�kwargs�fs �r � async_wrapperz%skip_for_im360.<locals>.async_wrapper9 sR �� � � ��?�?� ��K�K�F�G�G�G��F��Q��'��'�'�'�'�'�'�'�'�'r c �h �� t � � rt � d� � d S �| i |��S r r! r$ s �r �wrapperzskip_for_im360.<locals>.wrapper@ s<