a
    x{Jhü  ã                   @   s¢   d Z ddlZddlmZmZ ddlmZ dd„ ZeejƒZeej	ƒZ	eej
ƒZ
eejƒZeejƒZeejƒZeejƒZeejƒZeejƒZeejƒZeejƒZdS )zBAsync executor versions of file functions from the os.path module.é    N)ÚpartialÚwraps)Úpathc                    s    t ˆ ƒd d dœ‡ fdd„
ƒ}|S )N)ÚloopÚexecutorc                 Ÿ   s8   | d u rt  ¡ } tˆ g|¢R i |¤Ž}|  ||¡I d H S )N)ÚasyncioZget_running_loopr   Zrun_in_executor)r   r   ÚargsÚkwargsZpfunc©Úfunc© úA/var/www/shaz/venv/lib/python3.9/site-packages/aiofiles/ospath.pyÚrun   s    zwrap.<locals>.run)r   )r   r   r   r
   r   Úwrap   s    r   )Ú__doc__r   Ú	functoolsr   r   Úosr   r   ÚexistsÚisfileÚisdirÚislinkÚismountÚgetsizeÚgetmtimeÚgetatimeÚgetctimeÚsamefileÚsameopenfiler   r   r   r   Ú<module>   s   









