+
    &j'                        ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHtHt ^ RI	H
t
HtHtHt ^ RIHt ^ RIHt ]P$                  ! R4      t ! R R]4      tR	R
R
]3R ltR t]R8X  d    ^ RIt]! ]P2                  R,          4       R# R# )    N)EIOENOENT)FUSEFuseOSErrorLoggingMixIn
Operations)__version__)	url_to_fsfsspec.fusec                   ~   a  ] tR t^t o RR ltRR ltR tR tR tR t	R t
RR	 ltR
 tRR ltR tR tR tRtV tR# )FUSErc                    Wn         / V n        VP                  R 4      R ,           V n        ^ V n        \
        P                  RV4       W0n        R# )/zStarting FUSE at %sN)fscacherstriprootcounterloggerinfo_ready_file)selfr   path
ready_files   &&&&c/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/fsspec/fuse.py__init__FUSEr.__init__   s?    
KK$s*	)40%    Nc                   \         P                  R V4       V P                  '       d   VR9   d   RRR^/# RP                  V P                  VP                  R4      .4      P                  R4      p V P                  P                  V4      pRTP                  RR	4      R
TP                  RR	4      /pTP                  RR4      pTR,          R8w  d&   \        P                  T,          TR&   ^ TR&   ^ TR&   M0\        P                  T,          TR&   TR,          TR&   RTR&   ^TR&   RT9   d
   TR,          M\         P                   ! 4       TR&   RT9   d
   TR,          M\         P                   ! 4       TR&   RT9   d
   TR,          M\         P                   ! 4       TR&   T#   \         d   p\        \        4      ThRp?ii ; i)z
getattr %stypefilest_size r   Nst_uiduidi  st_gidgidmodei  st_mode
st_blksizesizest_nlinkatimest_atimectimest_ctimemtimest_mtimez/.fuse_readyz.fuse_readyi  P )r   debugr   joinr   lstripr   r   r   FileNotFoundErrorr   r   getstatS_IFDIRS_IFREGtime)r   r   fhr   excdataperms   &&&    r   getattrFUSEr.getattr   s   \4((G GFIq11ww		4;;s#345<<SA	/77<<%D $((5$/488E4;PQxx&<6!"llT1DODO!"D"llT1DO"6lDO!*D D,3tO4=Z,3tO4=Z,3tO4=Z% ! 	/f%3.	/s   2F" "G-F==Gc                X   \         P                  R V4       RP                  V P                  VP	                  R4      .4      pV P
                  P                  VR4      pV Uu. uF1  p\        P                  P                  VP                  R4      4      NK3  	  ppRR.V,           # u upi )z
readdir %sr#   r   F.z..)r   r4   r5   r   r6   r   lsosr   basenamer   )r   r   r=   filesfs   &&&  r   readdirFUSEr.readdir6   s    \4(ww		4;;s#345

4':?@%Q!!!((3-0%@T{U"" As   #7B'c                    R P                  V P                  VP                  R4      .4      pV P                  P	                  V4       ^ # r#   r   )r5   r   r6   r   mkdirr   r   r(   s   &&&r   rN   FUSEr.mkdir=   5    ww		4;;s#345dr   c                    R P                  V P                  VP                  R4      .4      pV P                  P	                  V4       ^ # rM   )r5   r   r6   r   rmdir)r   r   s   &&r   rS   FUSEr.rmdirB   rQ   r   c                    \         P                  R WV34       V P                  '       d
   VR9   d   R# V P                  V,          pVP	                  V4       VP                  V4      pV# )zread %ss   readyr3   )r   r4   r   r   seekread)r   r   r+   offsetr=   rI   outs   &&&&&  r   rW   
FUSEr.readG   sV    YV 45(G GJJrN	vffTl
r   c                    \         P                  R W34       V P                  V,          pVP                  V4       VP	                  V4       \        V4      # )zwrite %s)r   r4   r   rV   writelen)r   r   r?   rX   r=   rI   s   &&&&& r   r\   FUSEr.writeR   s?    Z$0JJrN	v	4yr   c                ~   \         P                  R W34       RP                  V P                  VP	                  R4      .4      pV P
                  P                  V4       V P
                  P                  VR4      pWPP                  V P                  &   V ;P                  ^,          un	        V P                  ^,
          # )z	create %sr#   r   wb)
r   r4   r5   r   r6   r   touchopenr   r   )r   r   flagsfifnrI   s   &&&&  r   createFUSEr.createY   s    [4-0WWdiiS!123bGGLLT"#$

4<< ||ar   c                j   \         P                  R W34       RP                  V P                  VP	                  R4      .4      pV^,          ^ 8X  d   RpMRpV P
                  P                  W44      V P                  V P                  &   V ;P                  ^,          un        V P                  ^,
          # )zopen %sr#   r   rbr`   )	r   r4   r5   r   r6   r   rb   r   r   )r   r   rc   re   r(   s   &&&  r   rb   
FUSEr.openb   s    Y.WWdiiS!12319>D D#'77<<#9

4<< ||ar   c                    R P                  V P                  VP                  R4      .4      pV^ 8w  d   \        hV P                  P                  V4       R# )r#   r   N)r5   r   r6   NotImplementedErrorr   ra   )r   r   lengthr=   re   s   &&&& r   truncateFUSEr.truncateo   s?    WWdiiS!123Q;%%br   c                    R P                  V P                  VP                  R4      .4      p V P                  P	                  VR4       R#   \
        \        3 d   p\        \        4      ThRp?ii ; i)r#   r   FN)	r5   r   r6   r   rmOSErrorr7   r   r   )r   r   re   r>   s   &&  r   unlinkFUSEr.unlinkv   s\    WWdiiS!123	,GGJJr5!*+ 	,c"+	,s   A A2A--A2c                     W P                   9   d?   V P                   V,          pVP                  4        V P                   P                  V4       ^ #   \         d   p\	        T4        R p?^ # R p?ii ; iN)r   closepop	Exceptionprint)r   r   r=   rI   es   &&&  r   releaseFUSEr.release}   sZ    	ZZJJrN	

r"   	!HH	s   AA A3A..A3c                    \        V P                  R 4      '       dH   RP                  V P                  VP	                  R4      .4      pV P                  P                  W4      # \        h)chmodr#   r   )hasattrr   r5   r   r6   r   rl   rO   s   &&&r   r   FUSEr.chmod   sL    477G$$77DIIt{{3'789D77==,,!!r   )r   r   r   r   r   )Frv   )__name__
__module____qualname____firstlineno__r   rA   rJ   rN   rS   rW   r\   rf   rb   rn   rs   r|   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sK     &8#

	  ," "r   r   TFc                   a aaaaaa VV VVVVV3R lpS'       g1   \         P                  ! VR7      pRVn        VP                  4        V#  V! 4        R#   \         d     R# i ; i)a  Mount stuff in a local directory

This uses fusepy to make it appear as if a given path on an fsspec
instance is in fact resident within the local file-system.

This requires that fusepy by installed, and that FUSE be available on
the system (typically requiring a package to be installed with
apt, yum, brew, etc.).

Parameters
----------
fs: file-system instance
    From one of the compatible implementations
path: str
    Location on that file-system to regard as the root directory to
    mount. Note that you typically should include the terminating "/"
    character.
mount_point: str
    An empty directory on the local file-system where the contents of
    the remote path will appear.
foreground: bool
    Whether or not calling this function will block. Operation will
    typically be more stable if True.
threads: bool
    Whether or not to create threads when responding to file operations
    within the mounter directory. Operation will typically be more
    stable if False.
ready_file: bool
    Whether the FUSE process is ready. The ``.fuse_ready`` file will
    exist in the ``mount_point`` directory if True. Debugging purpose.
ops_class: FUSEr or Subclass of FUSEr
    To override the default behavior of FUSEr. For Example, logging
    to file.

c                  >   < \        S! SSSR 7      SS'       * S R7      # ))r   )	nothreads
foreground)r   )r   r   mount_point	ops_classr   r   threadss   r   <lambda>run.<locals>.<lambda>   s!    4"dz2+	r   )targetTN)	threadingThreaddaemonstartKeyboardInterrupt)	r   r   r   r   r   r   r   funcths	   fffffff  r   runr      sV    X D T*	

		F  		s   A A%$A%c           
         ! R R\         P                  4      pV! R\        P                  R7      pVP	                  RR\
        R7       VP	                  R\        R	R
7       VP	                  R\        RR
7       VP	                  R\        RR
7       VP	                  RRRRR7       VP	                  RR\        RR
7       VP	                  RRRRR7       VP	                  RRRRR7       VP	                  RRRR R7       VP                  V 4      p / pV P                  ;'       g    .  F  pVP                  R!4      w  rVpV'       g   VP                  R"V: 2R#7       VP                  4       pVP                  R$4      '       d   \        VR%\        R$4      )  4      pM)VP                  R&4      '       d   VR%\        R&4      )  R.9   pR'V9   d/   VP                  R'^4      w  rW9   d   WsV	,          V
&   K  W/W9&   K  WsV&   K  	  V P                   '       dI   \"        P$                  ! \"        P&                  V P                   R(R)7        ! R* R+\(        \*        4      pTpM\(        p\-        V P.                  3/ VB w  r\0        P3                  R,V\        V P4                  4      4       \7        VV P8                  V P4                  V P:                  V P<                  V P>                  VR-7       R%# )/a]  Mount filesystem from chained URL to MOUNT_POINT.

Examples:

python3 -m fsspec.fuse memory /usr/share /tmp/mem

python3 -m fsspec.fuse local /tmp/source /tmp/local \
        -l /tmp/fsspecfuse.log

You can also mount chained-URLs and use special settings:

python3 -m fsspec.fuse 'filecache::zip::file://data.zip' \
        / /tmp/zip \
        -o 'filecache-cache_storage=/tmp/simplecache'

You can specify the type of the setting by using `[int]` or `[bool]`,
(`true`, `yes`, `1` represents the Boolean value `True`):

python3 -m fsspec.fuse 'simplecache::ftp://ftp1.at.proftpd.org' \
        /historic/packages/RPMS /tmp/ftp \
        -o 'simplecache-cache_storage=/tmp/simplecache' \
        -o 'simplecache-check_files=false[bool]' \
        -o 'ftp-listings_expiry_time=60[int]' \
        -o 'ftp-username=anonymous' \
        -o 'ftp-password=xieyanbo'
c                   2   a a ] tR t^t oV 3R ltRtVtV ;t# )*main.<locals>.RawDescriptionArgumentParserc                   < \         SV `  4       pVP                  R 4      pV P                  P	                  4       V^&   R P                  V4      # )z

)superformat_helpsplitdescriptionr   r5   )r   usageparts	__class__s   &  r   r   6main.<locals>.RawDescriptionArgumentParser.format_help   sE    G')EKK'E''..0E!H;;u%%r    )r   r   r   r   r   r   r   __classcell__)r   r   s   @@r   RawDescriptionArgumentParserr      s     	& 	&r   r   r   )progr   z	--versionversion)actionr   urlzfs url)r    helpsource_pathzsource directory in fsr   zlocal directoryz-oz--optionappendz3Any options of protocol included in the chained URL)r   r   z-lz
--log-filez%Logging FUSE debug info (Default: '')z-fz--foregroundstore_falsez-Running in foreground or not (Default: False)z-tz	--threadsz-Running with threads support (Default: False)z-rz--ready-filezZThe `.fuse_ready` file will exist after FUSE is ready. (Debugging purpose, Default: False)=zWrong option: )messagez[int]Nz[bool]-z%(asctime)s %(message)s)levelfilenameformatc                       ] tR tRtRtR# )main.<locals>.LoggingFUSEri-  r   N)r   r   r   r   r   r   r   r   LoggingFUSErr   -  s    r   r   zMounting %s to %s)r   r   r   r   )1yestrue) argparseArgumentParsermain__doc__add_argumentr	   str
parse_argsoption	partitionerrorlowerendswithintr]   r   log_fileloggingbasicConfigDEBUGr   r   r
   r   r   r4   r   r   r   r   r   r   )argsr   parserkwargsitemkeysepvaluevalfs_namesetting_namer   fuserr   url_paths   &              r   r   r      s   8&x'>'> & *}$,,WF
I{K
Ch7
C6NO
C6GH
B	   l+R   <	   <	   .	   T"DF!!r!..-%LL>$!:L;kkm<<  oW./E\\(##(3x=.)-AAE#:$'IIc1$5!G 05w-#/"73K# "& }}}--]],	
	5, 	 TXX00LB
LL$hD4D4D0EF
????r   __main__:   NN)r   r   rF   r9   r   r<   errnor   r   fuser   r   r   r   fsspecr	   fsspec.corer
   	getLoggerr   r   r   r   r   sysargvr   r   r   <module>r      s      	     < <  !			=	)z"J z"B ;|rj z" r   