
    h                     J    S r SSKrSSKrSrSr\R                  rS rS rS r	g)z0Implements the transport for the file:// schema.    Nfile)z./local/path/filez~/local/path/filezlocal/path/filez./local/path/file.gzzfile:///home/user/filezfile:///home/user/file.bz2c                 4    [        U 5      n[        [        US9$ )N)schemeuri_path)extract_local_pathdictSCHEMEuri_as_string
local_paths     O/home/james-whalen/.local/lib/python3.13/site-packages/smart_open/local_file.py	parse_urir      s    #M2Jv
33    c                 P    [        U 5      n[        R                  " US   U5      nU$ )Nr   )r   ioopen)r   modetransport_params
parsed_urifobjs        r   open_urir       s&    =)J77:j)40DKr   c                     U R                  S5      (       a  U R                  SSS5      nOU n[        R                  R	                  U5      $ )Nzfile://    )
startswithreplaceospath
expanduserr
   s     r   r   r   &   sA    	**"**9b!<
"
77j))r   )
__doc__r   os.pathr   r	   URI_EXAMPLESr   r   r   r    r   r   <module>r$      s6    7 	 	 
ww4
*r   