a
    ¬…a™  ã                   @   s$   d dl Z d dlZeedœdd„ZdS )é    N)ÚpathÚreturnc                 C   sH   t j | ¡}tj d¡s"tjdkrD|rDt j | ¡\}}|t  |¡v }|S )aL  Returns if the given path exists and also matches the case on Windows.

    When finding files that can be imported, it is important for the cases to match because while
    file os.path.exists("module.py") and os.path.exists("MODULE.py") both return True on Windows,
    Python can only import using the case of the real file.
    ÚwinÚdarwin)Úosr   ÚexistsÚsysÚplatformÚ
startswithÚsplitÚlistdir)r   ÚresultZ	directoryÚbasename© r   ú*lib/python3.9/site-packages/isort/utils.pyÚexists_case_sensitive   s
    r   )r   r   ÚstrÚboolr   r   r   r   r   Ú<module>   s   