
    si                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  SS	KJr  SS
KJr  SSKJrJrJr  \" \5      r " S S\5      rg)zODefines local filesystem transport adapter for CondaSession (requests.Session).    )
formatdate)	getLogger)
guess_type)stat)SpooledTemporaryFile   )ensure_binary)url_to_path)json   )BaseAdapterCaseInsensitiveDictResponsec                   &    \ rS rSr SS jrS rSrg)LocalFSAdapter   Nc                    [        UR                  5      n[        5       nSUl        UR                  Ul         [	        U5      n	[        U	R                  SS9n
[        U5      S   =(       d    Sn[        UU	R                  U
S.5      Ul
        [        US5      Ul        UR                  R                  Ul        U$ ! [         a  nSUl        S	U[        U5      S
.n[!        5       nUR#                  [%        [&        R(                  " U5      5      5        UR+                  S5        Xl        UR                  R                  Ul         S nAU$ S nAff = f)N   T)usegmtr   z
text/plain)zContent-TypezContent-LengthzLast-Modifiedrbi  zfile does not exist)errorpath	exception)r
   urlr   status_coder   r   st_mtimer   r   st_sizeheadersopenrawcloseOSErrorreprr   writer	   r   dumpsseek)selfrequeststreamtimeoutverifycertproxiespathnamerespstatsmodifiedcontent_typeexcmessagefhs                  Jlib/python3.13/site-packages/conda/gateways/connection/adapters/localfs.pysendLocalFSAdapter.send   s    w{{+z;;	(NE "%..>H%h/2BlL.$0&+mm%-DL Hd+DHDJ3  	("D. !#YG
 &'BHH]4::g#678GGAJHDJJ 3	(s   B; ;
EB EEc                     g )N )r'   s    r6   r!   LocalFSAdapter.close:   s        r:   )NNNNN)__name__
__module____qualname____firstlineno__r7   r!   __static_attributes__r:   r<   r6   r   r      s    RV$Lr<   r   N)__doc__email.utilsr   loggingr   	mimetypesr   osr   tempfiler   common.compatr	   common.pathr
   common.serializer    r   r   r   r=   logr   r:   r<   r6   <module>rM      s?    V "     ) + ' % 9 9([ (r<   