+
    :1jf                         R t ^ RIHt ^ RIHt ^ RIHtHt ^ RIH	t	H
t
HtHtHt ^ RIHt ^RIHt ^RIHt ^RIHt ^R	IHt ^R
IHt ^RIHtHt ]! ]4      tR R lt]R 4       t ]R 4       t!R# )z\Disk utility functions testing path properties (e.g., writable, hardlinks, softlinks, etc.).)cache)	getLogger)W_OKaccess)basenamedirnameisdirisfilejoin)uuid4)TRACE)expand)LinkType)create_link)rm_rf)islinklexistsc                $    V ^8  d   QhR\         /# )   return)bool)formats   "8lib/python3.14/site-packages/conda/gateways/disk/test.py__annotate__r      s     " "4 "    c                 x   \        V 4      p \        P                  \        R V 4       \        \	        V 4      4      '       d>   \        V 4      p \        V R4      pVP                  4        V'       g   \        V 4       R# \        V \        4      #   \         d!   p\        P                  T4        Rp?R# Rp?ii ; i)zchecking path is writable %sza+TNF)r   logr   r   r   r   opencloser   OSErrordebugr   r   )pathpath_existedfhes   &   r   file_path_is_writabler%      s    $<DGGE148WT]t}		dD!B
 HHJd dD!!  	IIaL	s   B B9B44B9c           
         \        VR \        V 4       R\        \        4       4      R,           24      p\	        V 4      '       g   \        RV  R24      h\        V4      '       g   \        RV R24      h\        V4      '       d   \        V4       \        V4      '       d   \        V R24      h \        W\        P                  RR7       \        V4      '       * pV'       d   \        P                  \        R	W4       M\        P                  \        R
W4       V\        V4       #   \
         d+    \        P                  \        R
Y4        \        T4       R# i ; i  \        T4       i ; i).tmp..:N   NPath  is not a file is not a directoryz should not exist anymoreTforcez hard link supported for %s => %sz'hard link IS NOT supported for %s => %sF)r
   r   strr   r	   r   r   r   r   r   r   hardlinkr   r   r   )source_filedest_dir	test_fileis_supporteds   &&  r   hardlink_supportedr5   )   s0   Xx'<&=Qs57|B?O>PQRI+k].9::??hZ':;<<yiy#<=>> 	KH,=,=TJ!),,GGE={UGG@+ 
 	i	  @+Xi	 	is%   0A,D( (&EE  EE   E-c                    \         P                  \        R W4       \        VR\        V 4      ,           4      p\	        V 4      '       g   \        RV  R24      h\        V4      '       g   \        RV R24      h\        V4      '       d   \        V R24      h \        W\        P                  RR7       \        V4      \        V4       #   \
         d     \        T4       R# i ; i  \        T4       i ; i)	z*checking soft link capability for %s => %sr'   r*   r+   r,   z should not existTr-   F)r   r   r
   r   r	   r   r   r   r   r   softlinkr   r   )r1   r2   	test_paths   && r   softlink_supportedr9   G   s     GGE?WXw+)>>?I+k].9::??hZ':;<<y#4566KH,=,=TJi  	i  i 	is$   &C
 
C$C' #C$$C' 'C4N)"__doc__	functoolsr   loggingr   osr   r   os.pathr   r   r   r	   r
   uuidr   common.constantsr   common.pathr   models.enumsr   creater   deleter   linkr   r   __name__r   r%   r5   r9    r   r   <module>rH      sf    c    : :  % ! $   !"(  :  r   