+
    Bi                     ,   ^ RI t ^RIHt ^RIHt ]'       d   ^ RIHt ^ RIHtH	t	H
t
 RtRtM9^ RIHtH	t	H
t
 ^ RIHt ]P                  ! 4       t]P                   t]P                  t ! R	 R
4      t ! R R]4      t ! R R]	]4      t ! R R]
]4      tR# )    N)is_pypi)LexicalPathrmtree)PathInfo_ReadablePath_WritablePathTTESTFN)	os_helperc                   .  a  ] tR t^t o ]tR tRR ltR tRR ltR t	R t
R t]! ]P                  P                  4      t]! ]P                  P                   4      t]! ]P                  P"                  4      t]! ]P$                  4      tR tR	 tR
tV tR# )LocalPathGroundc                    Wn         R # Npath_cls)selfr   s   &&;/usr/lib/python3.14/test/test_pathlib/support/local_path.py__init__LocalPathGround.__init__   s         c                j    V P                  \        V,           4      p\        P                  ! V4       V# r   )r   testfnosmkdir)r   local_suffixroots   && r   setupLocalPathGround.setup!   s%    }}Vl23
r   c                    \        V4       R # r   r   )r   r   s   &&r   teardownLocalPathGround.teardown&   s	    tr   c                    \        VR 4      ;_uu_ 4       pVP                  V4       RRR4       R#   + '       g   i     R# ; i)wbN)openwrite)r   pdatafs   &&& r   create_fileLocalPathGround.create_file)   s&    !T]]aGGDM ]]]s	   1A	c                2    \         P                  ! V4       R # r   r   r   )r   r&   s   &&r   
create_dirLocalPathGround.create_dir-   s    
r   c                2    \         P                  ! W!4       R # r   r   symlink)r   r&   targets   &&&r   create_symlinkLocalPathGround.create_symlink0   s    


6r   c                   \         P                  ! \         P                  P                  VR 4      4       \         P                  ! \         P                  P                  VR4      4       \         P                  ! \         P                  P                  VR4      4       \         P                  ! \         P                  P                  VRR4      4       \	        \         P                  P                  VR4      R4      ;_uu_ 4       pVP                  R4       RRR4       \	        \         P                  P                  VRR4      R4      ;_uu_ 4       pVP                  R	4       RRR4       \	        \         P                  P                  VRR
4      R4      ;_uu_ 4       pVP                  R4       RRR4       \	        \         P                  P                  VRR4      R4      ;_uu_ 4       pVP                  R4       RRR4       \	        \         P                  P                  VRRR4      R4      ;_uu_ 4       pVP                  R4       RRR4       V P                  '       Ed/   \         P                  ! R\         P                  P                  VR4      4       \         P                  ! R\         P                  P                  VR4      4       \         P                  ! R\         P                  P                  VR4      RR7       \         P                  ! \         P                  P                  RR4      \         P                  P                  VR R4      RR7       \         P                  ! R\         P                  P                  VR4      4       R# R#   + '       g   i     EL; i  + '       g   i     ELP; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i)dirAdirBdirCdirDfileAr#   s   this is file A
NfileBs   this is file B
fileCs   this is file C
z	novel.txts   this is a novel
fileDs   this is file D
linkAznon-existing
brokenLinklinkBT)target_is_directoryz..linkCbrokenLinkLoop)r   r   pathjoinr$   r%   can_symlinkr1   r   r&   r(   s   && r   create_hierarchy LocalPathGround.create_hierarchy3   sd   
a()
a()
a()
a01"'',,q'*D11QGG'( 2"'',,q&'2D99QGG'( :"'',,q&'2D99QGG'( :"'',,q&+6==GG() >"'',,q&&':DAAQGG'( BJJwQ 89JJ~rww||A|'DEJJvww||Aw/+/1 JJrww||D&1ww||Avw7+/1 JJ'a9I)JK  211999999===AAAs<   NN*N>+O9O&N'	*N;	>O	O#	&O7	c                    \        VR RR7      ;_uu_ 4       pVP                  4       uuRRR4       #   + '       g   i     R# ; i)rzutf-8)encodingNr$   readrG   s   && r   readtextLocalPathGround.readtextT   s+    !S7++q668 ,+++s	   2A	c                    \        VR 4      ;_uu_ 4       pVP                  4       uuRRR4       #   + '       g   i     R# ; i)rbNrM   rG   s   && r   	readbytesLocalPathGround.readbytesX   s$    !T]]a668 ]]]s	   0A	r   N) )r   )__name__
__module____qualname____firstlineno__rF   r   r   r    r)   r-   r3   rH   staticmethodr   rD   isdirisfileislinkreadlinkrO   rS   __static_attributes____classdictcell____classdict__s   @r   r   r      s     K!
L8 'E"''..)F"''..)FBKK(H r   r   c                   Z   a  ] tR t^]t o R
tR tRR/R ltRR/R ltRR/R ltR t	Rt
V tR	# )LocalPathInfoc                ^    \        V4      V n        R V n        R V n        R V n        R V n        R # r   )str_path_exists_is_dir_is_file_is_symlink)r   rD   s   &&r   r   LocalPathInfo.__init__c   s*    Y
r   follow_symlinksTc                   V'       g   V P                  4       '       d   R # V P                  f/   \        P                  P	                  V P
                  4      V n        V P                  # )T)
is_symlinkrh   r   rD   existsrg   r   rm   s   &$r   rp   LocalPathInfo.existsj   s@    4??#4#4<<77>>$**5DL||r   c                   V'       g   V P                  4       '       d   R # V P                  f/   \        P                  P	                  V P
                  4      V n        V P                  # F)ro   ri   r   rD   r[   rg   rq   s   &$r   is_dirLocalPathInfo.is_dirr   s@    4??#4#4<<77==4DL||r   c                   V'       g   V P                  4       '       d   R # V P                  f/   \        P                  P	                  V P
                  4      V n        V P                  # rt   )ro   rj   r   rD   r\   rg   rq   s   &$r   is_fileLocalPathInfo.is_filez   s@    4??#4#4== GGNN4::6DM}}r   c                    V P                   f/   \        P                  P                  V P                  4      V n         V P                   # r   )rk   r   rD   r]   rg   r   s   &r   ro   LocalPathInfo.is_symlink   s3    #!ww~~djj9Dr   )rh   ri   rj   rk   rg   N)rg   rh   ri   rj   rk   )rV   rW   rX   rY   	__slots__r   rp   ru   rx   ro   r_   r`   ra   s   @r   rd   rd   ]   s@      KI       r   rd   c                   R   a a ] tR t^t oRtV 3R ltR tRR ltR tR t	Rt
VtV ;t# )ReadableLocalPathc                D   < \         SV `  ! V!   \        V 4      V n        R # r   )superr   rd   info)r   pathsegments	__class__s   &*r   r   ReadableLocalPath.__init__   s    ,'!$'	r   c                    \        V 4      # r   rf   r{   s   &r   
__fspath__ReadableLocalPath.__fspath__       4yr   c                    \        V R 4      # )rR   r$   r   	bufferings   &&r   __open_rb__ReadableLocalPath.__open_rb__       D$r   c                D   a  V 3R  l\         P                  ! S 4       4       # )c              3   6   <"   T F  pSV,          x  K  	  R # 5ir    ).0namer   s   & r   	<genexpr>,ReadableLocalPath.iterdir.<locals>.<genexpr>   s     9(8t(8s   )r   listdirr{   s   fr   iterdirReadableLocalPath.iterdir   s    9

4(899r   c                L    V P                  \        P                  ! V 4      4      # r   )with_segmentsr   r^   r{   s   &r   r^   ReadableLocalPath.readlink   s    !!"++d"344r   )r   )rV   rW   rX   rY   r}   r   r   r   r   r^   r_   r`   __classcell__)r   rb   s   @@r   r   r      s*      I( :5 5r   r   c                   H   a  ] tR t^t o RtR tRR ltRR ltR	R ltRt	V t
R# )
WritableLocalPathc                    \        V 4      # r   r   r{   s   &r   r   WritableLocalPath.__fspath__   r   r   c                    \        V R 4      # )r#   r   r   s   &&r   __open_wb__WritableLocalPath.__open_wb__   r   r   c                2    \         P                  ! W4       R # r   r,   )r   modes   &&r   r   WritableLocalPath.mkdir   s    
r   c                4    \         P                  ! WV4       R # r   r0   )r   r2   rA   s   &&&r   
symlink_toWritableLocalPath.symlink_to   s    


6!45r   r   Nr   )i  rt   )rV   rW   rX   rY   r}   r   r   r   r   r_   r`   ra   s   @r   r   r      s%     
 I 6 6r   r   )r   rU   r   lexical_pathr   shutilr   pathlib_abcr   r   r	   rF   r   pathlib.typestest.supportr   r
   r   rd   r   r   r   r   r   <module>r      s    
  %
BBKFDD&'')KFF? ?D) H ) X5{ 5.6{ 6r   