Файловый менеджер - Редактировать - /usr/lib64/python3.6/site-packages/samba/__pycache__/xattr.cpython-36.pyc
Ðазад
3 �I�d� � @ s8 d dl mZ d dlZd dlZd dlZdd� Zdd� ZdS )� )�xattrNc C sP xJt jdfD ]<}y"tjj| |�}tjj|||� W q tk rF Y qX qW dS )z8Copy ACL related attributes from a path to another path.zsystem.posix_acl_accessN)r ZXATTR_NTACL_NAME�sambaZxattr_nativeZ wrap_getxattrZ wrap_setxattr� Exception)ZfrompathZtopathZ attr_nameZ attribute� r �/usr/lib64/python3.6/xattr.py� copyattrs s r c C s� t j| �}t j|� xp|D ]h}t jj| |�}t jj||�}t jj|�r^t j|�}t j||� qt jj|�rvt ||� qt j||� qW t j| |� 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�shutilZcopy2Zcopystatr )�src�dst�names�nameZsrcnameZdstnameZlinktor r r r '