
    i                     6    d dl mZmZ d dlmZ d dlmZmZ d Zy)    )PureWindowsPathPath)url2pathname)urlparseunquotec                    t        |       }t        |      }t        t        |j                        fi |}t        |j                        j                  r%t        |j                  |j                  z   fi |}|S t        |j                        dkD  r:t        |j                  d         j                  rt        |j                  dd i |}|S )z
    Take a file:// url and return a Path.

    Adapted from:
        https://github.com/AcademySoftwareFoundation/OpenTimelineIO/blob/4c17494dee2e515aedc8623741556fae3e4afe72/src/py-opentimelineio/opentimelineio/url_utils.py#L43-L72
       N)
r   r   r   r   pathr   netlocdrivelenparts)urlstrkwargsunquotedparsed_resultfilepaths        g/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/cloudpathlib/url_utils.pypath_from_fileurlr      s     vH X&M L!3!34??H }++,22,,}/A/AALVL O	 
X^^	q	 _X^^A5F%G%M%M+6v6O    N)	pathlibr   r   urllib.requestr   urllib.parser   r   r    r   r   <module>r      s    ) ' *r   