← Back
Editing: _windows.cpython-311.pyc
� Mj� � �> � d dl mZ d dlZd dlZd dlmZ d dlmZ ddlm Z ddl mZ ej dk rZd dl Z d dlZd d l mZ d ZdZ e j dd �� � Zej gej _ ej ej _ dd�Z G d� de � � Zn G d� de � � ZdgZdS )� )�annotationsN)�ENOENT)�cast� )�BaseFileLock)�raise_on_exist_ro_file�win32)�wintypesi l �� �kernel32T)�use_last_error�path�str�return�boolc �� � t � | � � }|t k r%t j � � }|dk rdS |dk rdS dS t |t z � � S )a Check if a path is a reparse point (symlink, junction, etc.) on Windows. :param path: Path to check :return: True if path is a reparse point, False otherwise :raises OSError: If GetFileAttributesW fails for reasons other than file-not-found � F� )� _kernel32�GetFileAttributesW�INVALID_FILE_ATTRIBUTES�ctypes�get_last_errorr �FILE_ATTRIBUTE_REPARSE_POINT)r �attrs�errs �3/usr/lib/python3/dist-packages/filelock/_windows.py�_is_reparse_pointr sf � � �,�,�T�2�2���+�+�+��'�)�)�C��a�x�x��u��a�x�x��u��5��E�8�8�9�9�9� c �"