File: //lib64/python3.9/site-packages/borg/platform/__pycache__/base.cpython-39.opt-1.pyc
a
HZ�h}* � @ sr d dl Z d dlZd dlZd dlZd dlmZ d dlmZ dZe edej
�Zddlm
Z
dd �d
d�Zdd �dd
�Zdd �dd�Zd0dd�Zd1dd�Zzd dlmZ d2dd�ZW n ey� d3dd�ZY n0 d4dd�Zdd� Zdd� ZG dd� d�ZG d d!� d!�Zd"d#� Zd5d%d&�Ze�� Zee�Ze� d'�d Zej!�"d(�Z#e#�sVe� d)e�$� � �Z#d*d+� Z%d,d-� Z&d.d/� Z'dS )6� N)�safe_unlink)�is_win32z1.2_05� fdatasync� )�ENOATTRF)�follow_symlinksc C s g S )a
Return xattr names of a file (list of bytes objects).
*path* can either be a path (bytes) or an open file descriptor (int).
*follow_symlinks* indicates whether symlinks should be followed
and only applies when *path* is not an open file descriptor.
� )�pathr r r �8/usr/lib64/python3.9/site-packages/borg/platform/base.py� listxattr s r c C s t tt�t�| ��dS )a:
Read xattr and return its value (as bytes).
*path* can either be a path (bytes) or an open file descriptor (int).
*name* is the name of the xattr to read (bytes).
*follow_symlinks* indicates whether symlinks should be followed
and only applies when *path* is not an open file descriptor.
N)�OSErrorr �os�strerror)r �namer r r r
�getxattr'