o
    `۷ih                     @   s(   d dl Z d dlZ	 dedefddZdS )    Npath_or_urireturnc                 C   s~   t | tstdt|  dt| }tj| }t |tj	r$|j
 S t |tjr5|j
|jd kS tdt|j )aS  Returns True if uri_or_path is a path and False otherwise.

    Windows paths start with a drive name which can be interpreted as
    a URI scheme by urlparse and thus needs to be treated differently
    form POSIX paths.

    E.g. Creating a directory returns the path 'C:\Users\mp5n6ul72w\working_dir'
    will have the scheme 'C:'.
    z# path_or_uri must be a string, got .:zUnsupported path type: )
isinstancestr	TypeErrortypepathlibPathurllibparseurlparsePurePosixPathschemePureWindowsPathdrivestriplower__name__)r   parsed_path
parsed_uri r   M/home/ubuntu/vllm_env/lib/python3.10/site-packages/ray/_private/path_utils.pyis_path
   s   


r   )r
   r   r   boolr   r   r   r   r   <module>   s    