관리-도구
편집 파일: filesystem.cpython-312.pyc
� G��e � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl m Z mZmZm Z mZmZ d dlmZmZmZ d dlmZ d dlmZ ded efd �Zedede d eeddf fd�� Z ed ed� ed� �� Z eej: � Zded efd�Zded efd�Zdeded e e fd�Z ded ee!e"f fd�Z#ded efd�Z$ded ee!e"f fd�Z%ded efd�Z&y)� N)�contextmanager)�NamedTemporaryFile)�Any�BinaryIO� Generator�List�Union�cast)�retry�stop_after_delay� wait_fixed)�get_path_uid)�format_size�path�returnc �� � t j dk( st t d� syt j j | � sJ �d }| |k7 r�t j j | � rLt j � dk( r t | � }|dk( S t j | t j � S | t j j | � } }| |k7 r��y# t $ r Y yw xY w)N�win32�geteuidTr F) �sys�platform�hasattr�osr �isabs�lexistsr r �OSError�access�W_OK�dirname)r �previous�path_uids ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/utils/filesystem.py�check_path_ownerr"