
    &`ih                     (    d dl Z d dlZ	 dedefdZdS )    Npath_or_urireturnc                    t          | t                    s t          dt          |            d          t	          j        |           }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_uris      k/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/ray/_private/path_utils.pyis_pathr   
   s     k3'' TRd;>O>ORRRSSS,{++K&&{33J+w455 P$$$	K!8	9	9 P K$5$;$;C$@$@$F$F$H$HHH N${2C2C2LNNOOO    )r   r   r	   boolr    r   r   <module>r      sP     P P P P P P P Pr   