관리-도구
편집 파일: filesystem.cpython-38.pyc
U ʗRe � @ sf d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl m Z mZmZm Z mZmZ d dlmZmZmZ d dlmZ d dlmZ eed�d d �Zeee eeddf d�dd ��Zeded�ed�d�Zeej�Zeed�dd�Zeed�dd�Zeee e d�dd�Z eee!e"f d�dd�Z#eed�dd�Z$eee!e"f d�dd�Z%eed�dd �Z&dS )!� N)�contextmanager)�NamedTemporaryFile)�Any�BinaryIO� Generator�List�Union�cast)�retry�stop_after_delay� wait_fixed)�get_path_uid)�format_size)�path�returnc C s� t jdksttd�sdS tj�| �s(t�d }| |kr�tj�| �r�t�� dkrxzt | �}W n t k rn Y dS X |dkS t�| tj�S q,| tj� | � }} q,dS )N�win32�geteuidTr F)�sys�platform�hasattr�osr �isabs�AssertionError�lexistsr r �OSError�access�W_OK�dirname)r �previous�path_uid� r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/utils/filesystem.py�check_path_owner s r"