%PDF- %PDF-
Direktori : /lib/python3/dist-packages/samba/__pycache__/ |
Current File : //lib/python3/dist-packages/samba/__pycache__/xattr.cpython-312.pyc |
� �I�d� � �4 � d dl mZ d dlZd dlZd dlZd� Zd� Zy)� )�xattrNc �� � t j dfD ]D } t j j | |� }t j j |||� �F y# t $ r Y �Sw xY w)z8Copy ACL related attributes from a path to another path.zsystem.posix_acl_accessN)r �XATTR_NTACL_NAME�samba�xattr_native� wrap_getxattr� wrap_setxattr� Exception)�frompath�topath� attr_name� attributes �-/usr/lib/python3/dist-packages/samba/xattr.py� copyattrsr sn � ��,�,�.G�H� � � ��*�*�8�8��9B�D�I����,�,�V�-6�-6� 8� �� � �� �s �AA� A'�&A'c �D � t j | � }t j |� |D ]� }t j j | |� }t j j ||� }t j j |� r,t j |� }t j ||� ��t j j |� r t ||� ��t j ||� �� t j | |� t | |� y)z�Recursively copy a directory tree using shutil.copy2(), preserving xattrs. The destination directory must not already exist. If exception(s) occur, an Error is raised with a list of reasons. N)�os�listdir�makedirs�path�join�islink�readlink�symlink�isdir�copytree_with_xattrs�shutil�copy2�copystatr )�src�dst�names�name�srcname�dstname�linktos r r r '