HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/samba/__pycache__/xattr.cpython-310.pyc
o

�/a��@s8ddlmZddlZddlZddlZdd�Zdd�ZdS)�)�xattrNc	CsLtjdfD]}ztj�|tj�}tj�|tj|�Wqty#YqwdS)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�	attribute�r
�-/usr/lib/python3/dist-packages/samba/xattr.py�	copyattrss����rcCs�t�|�}t�|�|D]4}tj�||�}tj�||�}tj�|�r.t�|�}t�||�qtj�|�r:t	||�qt
�||�qt
�||�t
||�dS)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�linktor
r
rr's


r)�samba.dcerpcrr�samba.xattr_nativerrrrr
r
r
r�<module>s