+
    &jP1                     B    ^RI Ht ^RIHt ^RIHt  ! R R]]4      tR# )   )
filesystem)AsyncFileSystem)ChainedFileSystemc                     a a ] tR t^t oRtRtRFV 3R lltR tR t]	R 4       t
R tR tR	 tR
 tR tRGR ltR tR tR tR tR tR tR tR tRHR ltR tR tR tR tR tR tR t R t!R t"R t#R  t$R! t%R" t&R# t'R$ t(R% t)R& t*R' t+R( t,R) t-R* t.R+ t/RIR, lt0RIR- lt1R. t2R/ t3R0 t4R1 t5R2 t6R3 t7R4 t8R5 t9R6 t:R7 t;R8 t<R9 t=R: t>R; t?R< t@R= tAR> tBR? tCR@ tDRA tERB tFRC tGRD tHREtIVtJV ;tK# )JDirFileSystemzDirectory prefix filesystem

The DirFileSystem is a filesystem-wrapper. It assumes every path it is dealing with
is relative to the `path`. After performing the necessary paths operation it
delegates everything to the wrapped filesystem.
dirc                |  < \         SV `  ! R/ VB  Vf   \        RRV/T;'       g    / B pT;'       g    TpV P                  '       d   VP                  '       g   \        R4      hVP                  '       d'   V P                  VP                  8w  d   \        R4      hVP                  V4      V n        W n        R# )z
Parameters
----------
path: str
    Path to the directory.
fs: AbstractFileSystem
    An instantiated filesystem to wrap.
target_protocol, target_options:
    if fs is none, construct it from these
fo: str
    Alternate for path; do not provide both
Nprotocolz(can't use asynchronous with non-async fsz7both dirfs and fs should be in the same sync/async mode )	super__init__r   asynchronous
async_impl
ValueError_strip_protocolpathfs)selfr   r   fotarget_protocoltarget_optionsstorage_options	__class__s   &&&&&&,t/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/fsspec/implementations/dirfs.pyr   DirFileSystem.__init__   s    * 	+?+:O_O9M9M2OBzzrR]]]GHH===T.."//AVWW&&t,	    c                   \        V\        4      '       di   V P                  '       g   V# V'       g   V P                  # V P                  P                  P                  V P                  V P                  V4      34      # \        V\        4      '       d5   VP                  4        UUu/ uF  w  r#V P                  V4      VbK  	  upp# V Uu. uF  q P                  V4      NK  	  up# u uppi u upi N)

isinstancestrr   r   sepjoinr   dictitems_join)r   r   _pathvalues   &&  r   r%   DirFileSystem._join3   s    dC  999yy 77;;##TYY0D0DT0J$KLLdD!!AENDJJu%u,NN/34te

5!t44 O4s   (C)C/c                   \        V\        4      '       Ed*   V P                  '       g   V# WP                  8X  gM   V P                  P                  V P                  P
                  4      '       d   WP                  R ,          8X  d   R# V P                  V P                  P
                  ,           pV P                  P                  V P                  P
                  4      '       d5   VP                  V P                  P
                  4      '       g
   VR ,          pVP                  V4      '       g   Q hV\        V4      R # V Uu. uF  q0P                  V4      NK  	  up# u upi ):   NN N)r   r    r   
startswithr   r!   len_relpath)r   r   prefixr&   s   &&  r   r.   DirFileSystem._relpath>   s    dC  999 yy 		$$TWW[[11diim6KYY,Fyy##DGGKK009U9U??6****F&&267$e$$777s   E!c                .    V P                   P                  # r   )r   r!   r   s   &r   r!   DirFileSystem.sepQ   s    ww{{r   c                V   "   V P                   P                  ! V/ VB G R j  xL
 #  L5ir   )r   set_session)r   argskwargss   &*,r   r5   DirFileSystem.set_sessionU   s%     WW(($9&9999s    )')c                v   "   V P                   P                  ! V P                  V4      3/ VB G R j  xL
 #  L5ir   )r   _rm_filer%   r   r   r7   s   &&,r   r:   DirFileSystem._rm_fileX   s.     WW%%djj&6A&AAAA   0979c                Z    V P                   P                  ! V P                  V4      3/ VB # r   )r   rm_filer%   r;   s   &&,r   r?   DirFileSystem.rm_file[   s#    wwtzz$/:6::r   c                |   "   V P                   P                  ! V P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   _rmr%   r   r   r6   r7   s   &&*,r   rB   DirFileSystem._rm^   s1     WW[[D!1CDCFCCCC   3<:<c                `    V P                   P                  ! V P                  V4      .VO5/ VB # r   )r   rmr%   rC   s   &&*,r   rG   DirFileSystem.rma   s(    wwzz$**T*<T<V<<r   c                Z    V P                   P                  V P                  V4      W#R 7      # ))	recursivemaxdepth)r   deleter%   )r   r   rJ   rK   s   &&&&r   rL   DirFileSystem.deleted   s"    ww~~djj.)~WWr   c                   "   V P                   P                  ! V P                  V4      V P                  V4      3/ VB G R j  xL
 #  L5ir   )r   _cp_filer%   r   path1path2r7   s   &&&,r   rO   DirFileSystem._cp_fileg   s9     WW%%djj&7E9JUfUUUUs   A A	AA	c                z    V P                   P                  ! V P                  V4      V P                  V4      3/ VB # r   )r   cp_filer%   rP   s   &&&,r   rU   DirFileSystem.cp_filej   s.    wwtzz%0$**U2CNvNNr   c                   "   V P                   P                  ! V P                  V4      V P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   _copyr%   r   rQ   rR   r6   r7   s   &&&*,r   rX   DirFileSystem._copym   sR      WW]]JJuJJu
 
 	
 
 	
 
s   AAA
Ac                    V P                   P                  ! V P                  V4      V P                  V4      .VO5/ VB # r   )r   copyr%   rY   s   &&&*,r   r\   DirFileSystem.copy{   sC    ww||JJuJJu
 
 	
 	
r   c                |   "   V P                   P                  ! V P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   _piper%   rC   s   &&*,r   r_   DirFileSystem._pipe   s1     WW]]4::d#3EdEfEEEErE   c                `    V P                   P                  ! V P                  V4      .VO5/ VB # r   )r   piper%   rC   s   &&*,r   rb   DirFileSystem.pipe   (    ww||DJJt,>t>v>>r   c                |   "   V P                   P                  ! V P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   
_pipe_filer%   rC   s   &&*,r   rf   DirFileSystem._pipe_file   s3     WW''

4(8J4J6JJJJrE   c                `    V P                   P                  ! V P                  V4      .VO5/ VB # r   )r   	pipe_filer%   rC   s   &&*,r   ri   DirFileSystem.pipe_file   s*    ww  D!1CDCFCCr   c           	     h    V P                   P                  ! V P                  V4      V3R VRVRV/VB # )encodingerrorsnewline)r   
write_textr%   )r   r   r'   rl   rm   rn   r7   s   &&&&&&,r   ro   DirFileSystem.write_text   sR     ww!!JJt
 
 	

 
 
 	
r   c                |   "   V P                   P                  ! V P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   	_cat_filer%   rC   s   &&*,r   rr   DirFileSystem._cat_file   3     WW&&tzz$'7I$I&IIIIrE   c                `    V P                   P                  ! V P                  V4      .VO5/ VB # r   )r   cat_filer%   rC   s   &&*,r   rv   DirFileSystem.cat_file   *    ww

4 0B4B6BBr   c                   "   V P                   P                  ! V P                  V4      .VO5/ VB G R j  xL
 p\        V\        4      '       d5   VP                  4        UUu/ uF  w  rVV P                  V4      VbK  	  upp# V#  LPu uppi 5ir   )r   _catr%   r   r#   r$   r.   r   r   r6   r7   retkeyr'   s   &&*,   r   rz   DirFileSystem._cat   s     GGLLJJt

 
 
 c4  @C		L*#DMM#&-LL

 Ms!   3BB-B#B BBc                   V P                   P                  ! V P                  V4      .VO5/ VB p\        V\        4      '       d5   VP                  4        UUu/ uF  w  rVV P                  V4      VbK  	  upp# V# u uppi r   )r   catr%   r   r#   r$   r.   r{   s   &&*,   r   r   DirFileSystem.cat   sw    ggkkJJt

 
 c4  @C		L*#DMM#&-LL
 Ms   A<c                v   "   V P                   P                  ! WP                  V4      3/ VB G R j  xL
 #  L5ir   )r   	_put_filer%   r   lpathrpathr7   s   &&&,r   r   DirFileSystem._put_file   s.     WW&&ujj.?J6JJJJr=   c                Z    V P                   P                  ! WP                  V4      3/ VB # r   )r   put_filer%   r   s   &&&,r   r   DirFileSystem.put_file   s%    wwzz%'8CFCCr   c                ~   "   V P                   P                  ! VV P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   _putr%   r   r   r   r6   r7   s   &&&*,r   r   DirFileSystem._put   sI      WW\\JJu
 
 	
 
 	
 
s   4=;=c                b    V P                   P                  ! VV P                  V4      .VO5/ VB # r   )r   putr%   r   s   &&&*,r   r   DirFileSystem.put   s:    ww{{JJu
 
 	
 	
r   c                x   "   V P                   P                  ! V P                  V4      V3/ VB G R j  xL
 #  L5ir   )r   	_get_filer%   r   r   r   r7   s   &&&,r   r   DirFileSystem._get_file   s0     WW&&tzz%'8%J6JJJJs   1:8:c                \    V P                   P                  ! V P                  V4      V3/ VB # r   )r   get_filer%   r   s   &&&,r   r   DirFileSystem.get_file   s'    ww

5 15CFCCr   c                |   "   V P                   P                  ! V P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   _getr%   r   r   r6   r7   s   &&*,r   r   DirFileSystem._get   s1     WW\\$**U"3EdEfEEEErE   c                `    V P                   P                  ! V P                  V4      .VO5/ VB # r   )r   getr%   r   s   &&*,r   r   DirFileSystem.get   s(    ww{{4::e,>t>v>>r   c                r   "   V P                   P                  V P                  V4      4      G R j  xL
 #  L5ir   )r   _isfiler%   r   r   s   &&r   r   DirFileSystem._isfile   '     WW__TZZ%56666   .757c                V    V P                   P                  V P                  V4      4      # r   )r   isfiler%   r   s   &&r   r   DirFileSystem.isfile       ww~~djj.//r   c                r   "   V P                   P                  V P                  V4      4      G R j  xL
 #  L5ir   )r   _isdirr%   r   s   &&r   r   DirFileSystem._isdir   s'     WW^^DJJt$45555r   c                V    V P                   P                  V P                  V4      4      # r   )r   isdirr%   r   s   &&r   r   DirFileSystem.isdir       ww}}TZZ-..r   c                r   "   V P                   P                  V P                  V4      4      G R j  xL
 #  L5ir   )r   _sizer%   r   s   &&r   r   DirFileSystem._size   s'     WW]]4::d#34444r   c                V    V P                   P                  V P                  V4      4      # r   )r   sizer%   r   s   &&r   r   DirFileSystem.size   s    ww||DJJt,--r   c                r   "   V P                   P                  V P                  V4      4      G R j  xL
 #  L5ir   )r   _existsr%   r   s   &&r   r   DirFileSystem._exists   r   r   c                V    V P                   P                  V P                  V4      4      # r   )r   existsr%   r   s   &&r   r   DirFileSystem.exists   r   r   c                   "   V P                   P                  ! V P                  V4      3/ VB G R j  xL
 pVP                  4       pV P	                  VR,          4      VR&   V#  L15i)Nname)r   _infor%   r\   r.   r   r   r7   infos   &&, r   r   DirFileSystem._info   sS     WW]]4::d#3>v>>yy{}}T&\2V ?s   0A&A$2A&c                    V P                   P                  ! V P                  V4      3/ VB pVP                  4       pV P	                  VR ,          4      VR &   V# )r   )r   r   r%   r\   r.   r   s   &&, r   r   DirFileSystem.info   sH    ww||DJJt,77yy{}}T&\2Vr   c                Z  "   V P                   P                  ! V P                  V4      3R V/VB G Rj  xL
 P                  4       pV'       dJ   . pV F?  pVP                  4       pV P	                  VR,          4      VR&   VP                  V4       KA  	  V# V P	                  V4      #  Lt5i)detailNr   )r   _lsr%   r\   r.   appendr   r   r   r7   r|   outentrys   &&&,   r   r   DirFileSystem._ls  s     WW[[D!1K&KFKKQQSC

 $eFm <f

5!  J}}S!! Ls   2B+B)B+AB+c                >   V P                   P                  ! V P                  V4      3R V/VB P                  4       pV'       dJ   . pV F?  pVP                  4       pV P	                  VR,          4      VR&   VP                  V4       KA  	  V# V P	                  V4      # )r   r   )r   lsr%   r\   r.   r   r   s   &&&,   r   r   DirFileSystem.ls  s    ggjjD)C&CFCHHJC

 $eFm <f

5!  J}}S!!r   c                  "   V P                   P                  ! V P                  V4      .VO5/ VB   R j  xL
  w  rEpV P                  V4      WV35x  K%   L D!R # 5ir   )r   _walkr%   r.   r   r   r6   r7   rootdirsfiless   &&*,   r   r   DirFileSystem._walk  sV     '+ww}}TZZ5E'W'WPV'W 	3 	3#$e--%t22	3'Ws%   0AAAAAAAc              /     "   V P                   P                  ! V P                  V4      .VO5/ VB  F  w  rEpV P                  V4      WV3x  K  	  R # 5ir   )r   walkr%   r.   r   s   &&*,   r   r   DirFileSystem.walk!  sI     !%djj.>!P!P!PD--%t22 "Qs   AAc                @  "   VP                  R R4      pV P                  P                  ! V P                  V4      3/ VB G Rj  xL
 pV'       d5   VP	                  4        UUu/ uF  w  rV P                  V4      VbK  	  upp# V P                  V4      #  LQu uppi 5ir   FN)r   r   _globr%   r$   r.   r   r   r7   r   r|   r   s   &&,   r   r   DirFileSystem._glob%  s}     He,GGMM$**T"2=f==@C		L*$DMM$'-LL}}S!! >Ls*   ABBBB$BBBc                $   VP                  R R4      pV P                  P                  ! V P                  V4      3/ VB pV'       d5   VP	                  4        UUu/ uF  w  rV P                  V4      VbK  	  upp# V P                  V4      # u uppi r   F)r   r   globr%   r$   r.   r   s   &&,   r   r   DirFileSystem.glob,  su    He,ggll4::d+6v6@C		L*$DMM$'-LL}}S!! Ms   Bc                (  "   VP                  R R4      pV P                  P                  ! V P                  V4      .VO5/ VB G Rj  xL
 pV'       d   V# VP	                  4        UUu/ uF  w  rV P                  V4      VbK  	  upp#  LBu uppi 5i)totalTN)r   r   _dur%   r$   r.   r   r   r6   r7   r   r|   r   s   &&*,   r   r   DirFileSystem._du3  s|     

7D)GGKK

4 0B4B6BBJ<?IIKHKjdd#T)KHH	 C Is*   ABB
BB)BBBc                   VP                  R R4      pV P                  P                  ! V P                  V4      .VO5/ VB pV'       d   V# VP	                  4        UUu/ uF  w  rV P                  V4      VbK  	  upp# u uppi )r   T)r   r   dur%   r$   r.   r   s   &&*,   r   r   DirFileSystem.du;  sm    

7D)ggjjD);D;F;J<?IIKHKjdd#T)KHHHs   B c                F  "   VP                  R R4      pV P                  P                  ! V P                  V4      .VO5/ VB G Rj  xL
 pV'       d5   VP	                  4        UUu/ uF  w  rV P                  V4      VbK  	  upp# V P                  V4      #  LQu uppi 5ir   )r   r   _findr%   r$   r.   r   r   r6   r7   r   r|   r   s   &&*,   r   r   DirFileSystem._findC  s     He,GGMM$**T"2DTDVDD@C		L*$DMM$'-LL}}S!! ELs*   AB!BB!B!'BB!B!c                *   VP                  R R4      pV P                  P                  ! V P                  V4      .VO5/ VB pV'       d5   VP	                  4        UUu/ uF  w  rV P                  V4      VbK  	  upp# V P                  V4      # u uppi r   )r   r   findr%   r$   r.   r   s   &&*,   r   r   DirFileSystem.findJ  sz    He,ggll4::d+=d=f=@C		L*$DMM$'-LL}}S!! Ms   Bc                   "   T P                  V P                  P                  ! V P                  V4      .VO5/ VB G R j  xL
 4      #  L5ir   )r.   r   _expand_pathr%   rC   s   &&*,r   r   DirFileSystem._expand_pathQ  sA     }}''&&tzz$'7I$I&II
 	
Is   >A A		Ac                ~    V P                  V P                  P                  ! V P                  V4      .VO5/ VB 4      # r   )r.   r   expand_pathr%   rC   s   &&*,r   r   DirFileSystem.expand_pathV  s3    }}TWW00D1ASDSFSTTr   c                |   "   V P                   P                  ! V P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   _mkdirr%   rC   s   &&*,r   r   DirFileSystem._mkdirY  s1     WW^^DJJt$4FtFvFFFFrE   c                `    V P                   P                  ! V P                  V4      .VO5/ VB # r   )r   mkdirr%   rC   s   &&*,r   r   DirFileSystem.mkdir\  s(    ww}}TZZ-????r   c                |   "   V P                   P                  ! V P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   	_makedirsr%   rC   s   &&*,r   r   DirFileSystem._makedirs_  rt   rE   c                `    V P                   P                  ! V P                  V4      .VO5/ VB # r   )r   makedirsr%   rC   s   &&*,r   r  DirFileSystem.makedirsb  rx   r   c                V    V P                   P                  V P                  V4      4      # r   )r   rmdirr%   r   s   &&r   r  DirFileSystem.rmdire  r   r   c                z    V P                   P                  ! V P                  V4      V P                  V4      3/ VB # r   )r   mvr%   rP   s   &&&,r   r  DirFileSystem.mvh  s9    wwzzJJuJJu
 
 	
r   c                Z    V P                   P                  ! V P                  V4      3/ VB # r   )r   touchr%   r;   s   &&,r   r  DirFileSystem.toucho  s#    ww}}TZZ-888r   c                V    V P                   P                  V P                  V4      4      # r   )r   createdr%   r   s   &&r   r  DirFileSystem.createdr  s    wwtzz$/00r   c                V    V P                   P                  V P                  V4      4      # r   )r   modifiedr%   r   s   &&r   r  DirFileSystem.modifiedu  s     ww

4 011r   c                `    V P                   P                  ! V P                  V4      .VO5/ VB # r   )r   signr%   rC   s   &&*,r   r  DirFileSystem.signx  rd   r   c                h    V P                   P                   R V P                   RV P                   R2# )z(path='z', fs=))r   __qualname__r   r   r2   s   &r   __repr__DirFileSystem.__repr__{  s.    ..--.gdii[twwiqQQr   c                `    V P                   P                  ! V P                  V4      .VO5/ VB # r   )r   openr%   rC   s   &&*,r   r  DirFileSystem.open~  s7     ww||JJt

 
 	
r   c                |   "   V P                   P                  ! V P                  V4      .VO5/ VB G R j  xL
 #  L5ir   )r   
open_asyncr%   rC   s   &&*,r   r  DirFileSystem.open_async  sF      WW''JJt

 
 
 	
 
rE   )r   r   )NNNNN)FN)NNN)T)L__name__
__module__r  __firstlineno____doc__r
   r   r%   r.   propertyr!   r5   r:   r?   rB   rG   rL   rO   rU   rX   r\   r_   rb   rf   ri   ro   rr   rv   rz   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r  r  r  __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r      s     H!F	58&  :B;D=XVO

F?KD

JC

KD

KDF?706/5.70
"
"33""II""

UG@JC/
912?R



 

r   r   N)r+   r   asynr   chainedr   r   r   r   r   <module>r,     s     " &N
O%6 N
r   