관리-도구
편집 파일: _shutil.cpython-311.opt-1.pyc
� IMg � �P � d Z ddlZddlZddlZ ej e� � Zddd�d�ZdS )zHigh-level file operations.� NF� )� max_triesc � � t d|dz � � D ]s} t j | ||� � c S # t $ rL}||k s|j t j t j fvr� t � d| |� � Y d}~�ld}~ww xY wdS )z�More robust shutil.rmtree. Retry on "Directory not empty" race condition: https://github.com/ansible/ansible/issues/34335#issuecomment-362995700 � z Can't remove %s tree, reason: %sN) �range�shutil�rmtree�OSError�errno�EEXIST� ENOTEMPTY�logger�warning)�path� ignore_errors�onerrorr �i�es �R/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/utils/_shutil.pyr r s� � � �1�i�!�m� $� $� H� H�� H��=��}�g�>�>�>�>�>��� H� H� H��I�~�~�������1� "� "� � �N�N�=�t�Q�G�G�G�G�G�G�G�G����� H����H� Hs �/� B�AB � B)FN)�__doc__r �loggingr � getLogger�__name__r r � � r �<module>r sj �� !� !� ���� ���� � � � � �� �8� $� $��H�� H� H� H� H� H� H� Hr