관리-도구
편집 파일: filesystem.cpython-311.pyc
� �Re � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl m Z d dlmZm Z mZmZmZmZ d dlmZmZmZ d dlmZ d dlmZ ded efd �Zdeded dfd �Zded efd�Zededed ee fd�� � Z ed ed� � ed� � �� � Z e ej! � � Z!ded efd�Z"ded efd�Z#deded ee fd�Z$ded ee%e&f fd�Z'ded efd�Z(ded ee%e&f fd�Z)ded efd�Z*dS )� N)�contextmanager)�NamedTemporaryFile)�Any�BinaryIO�Iterator�List�Union�cast)�retry�stop_after_delay� wait_fixed)�get_path_uid)�format_size�path�returnc �� � t j dk st t d� � sdS t j � | � � sJ �d }| |k r�t j � | � � r^t j � � dk r( t | � � }n# t $ r Y dS w xY w|dk S t j | t j � � S | t j � | � � } }| |k ��dS )N�win32�geteuidTr F) �sys�platform�hasattr�osr �isabs�lexistsr r �OSError�access�W_OK�dirname)r �previous�path_uids ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/utils/filesystem.py�check_path_ownerr"