Your IP : 3.141.19.115
o
6��f� � @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZg d�Zdddd�dd�Zdddd�dd�Z d d
� Z
dd� Zd
d� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Ze�d!�Ze�d"�Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zejeed+d �B ZdS ),� N)�glob�iglob�escapeF��root_dir�dir_fd� recursivec C s t t| |||d��S )Nr )�listr )�pathnamer r r � r �+/opt/alt/python310/lib64/python3.10/glob.pyr
s
r c C s� t �d| |� t �d| |||� |d urt�|�}n| d d� }t| |||d�}| r5|rSt| d d� �rSzt|�}|rFt�|f|�}W |S W |S t yR Y |S w |S )Nz glob.globzglob.glob/2r F� )
�sys�audit�os�fspath�_iglob�_isrecursive�next� itertools�chain�
StopIteration)r
r r r �it�sr r r r s(
���r c
c s � t j�| �\}}t| �s)|rtt|| �|�r| V d S tt||�|�r'| V d S |sI|r=t|�r=t||||�E d H d S t ||||�E d H d S || krZt|�rZt
||||d�}n|g}t|�rm|rjt|�rjt}nt }nt}|D ]}|t||�|||�D ]
} t j�|| �V q}qqd S )NT)
r �path�split� has_magic�_lexists�_join�_isdirr �_glob2�_glob1r �_glob0�join)
r
r r r �dironly�dirname�basename�dirsZglob_in_dir�namer r r r 5 s: �����r c C s. t | ||�}t|�sdd� |D �}t�||�S )Nc s s � | ] }t |�s|V qd S �N)� _ishidden)�.0�xr r r � <genexpr>` s � z_glob1.<locals>.<genexpr>)�_listdirr* �fnmatch�filter)r% �patternr r$ �namesr r r r! ] s r! c C s2 |rt t| |�|�r
|gS g S t| |�r|gS g S r) )r r r )r% r&