o
    c.                     @   s0   d dl mZmZ dd Zd
ddZd
dd	ZdS )    )PureWindowsPathPurePosixPathc                    s|   	 |rt   ndd |D }dd |D }t  ||@ }|r'td|t fdd|D o=t fdd|D  S )Nc                 S      h | ]}|  qS  lower.0patternr   r   [G:\Development\the-witcher-3-mod-manager\.venv\lib\site-packages\watchdog\utils\patterns.py	<setcomp>       z_match_path.<locals>.<setcomp>c                 S   r   r   r   r   r   r   r   r      r   z/conflicting patterns `{}` included and excludedc                 3       | ]}  |V  qd S Nmatchr	   ppathr   r   	<genexpr>       z_match_path.<locals>.<genexpr>c                 3   r   r   r   r   r   r   r   r      r   )r   r   
ValueErrorformatany)r   included_patternsexcluded_patternscase_sensitiveZcommon_patternsr   r   r   _match_path   s   
r   NTc                 c   sP    	 |d u r	dgn|}|d u rg n|}| D ]}t |t|t||r%|V  qd S )N*r   setpathsr   r   r   ZincludedZexcludedr   r   r   r   filter_paths"   s   r$   c                 C   sN   	 |d u rdgn|}|d u rg n|}| D ]}t |t|t||r$ dS qdS )Nr   TFr    r"   r   r   r   match_any_paths>   s   r%   )NNT)pathlibr   r   r   r$   r%   r   r   r   r   <module>   s   
