HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/duplicity/__pycache__/robust.cpython-310.pyc
o

�~�_�	�@s:ddlZddlmZddlmZdZd
dd�Zdd	�ZdS)�N)�librsync)�log��cCs�ddlm}z||�WStttj|jfyH}z+t|t�r+t|d�r<t	j
|j	dvr<|r;||g|�R�WYd}~Sn�WYd}~dSd}~ww)z�Apply function to args, if error, run error_handler on exception

    This only catches certain exceptions which seem innocent
    enough.

    r��path�errno)
�EPERM�ENOENT�EACCES�EBUSY�EEXIST�ENOTDIR�ENAMETOOLONG�EINTR�	ENOTEMPTY�EIO�ETXTBSY�ESRCH�EINVALN)�	duplicityr�IOError�EnvironmentErrorr�
librsyncError�
PathException�
isinstance�hasattrr�	errorcode)�
error_handler�function�argsr�excrr�2/usr/lib/python3/dist-packages/duplicity/robust.py�check_common_errors"

�
�����r#cs$�fdd�}t|�j�}|��|S)z<Like path.listdir() but return [] if error, and sort resultscst�td��j�gS)NzError listing directory %s)r�Warn�_�uc_name)r!rrr"r?szlistpath.<locals>.error_handler)r#�listdir�sort)rr�dir_listingrrr"�listpath=sr*)r)rrrr�tmp_file_indexr#r*rrrr"�<module>s