
    g                         d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ  ej                         d        Z
ej                  d        Zy)    N)CachingFileSystemc               #   $  K   t        j                  d      } | j                  j                          | j                  j                          | j                  j                  d       	 |  | j                  j                          | j                  j                          | j                  j                  d       y# | j                  j                          | j                  j                          | j                  j                  d       w xY ww)z0
    Fixture providing a memory filesystem.
    memory N)fsspec
filesystemstoreclearpseudo_dirsappend)ms    D/var/www/openai/venv/lib/python3.12/site-packages/fsspec/conftest.pyr   r      s     
 	(#AGGMMOMMMM!			R  	
		R s    A%D(B< ,AD<ADDc              #     K   t        j                  d       ddlm} |j	                          t        j                          t        |       }t        t        j                  j                  |d      d      5 }|j                  ddz         ddd       t        j                  t        j                  d	dd
|dddddg
      }	 t!        j"                  d       d |j%                          |j'                          	 t)        j*                  |        y# 1 sw Y   xY w# t,        $ r Y yw xY w# |j%                          |j'                          	 t)        j*                  |        w # t,        $ r Y w w xY wxY ww)z6
    Fixture providing a writable FTP filesystem.
    	pyftpdlibr   )FTPFileSystemoutwbs   helloi'  Nz-mz-dz-uuserz-Ppassz-w   )	localhostiI  r   r   )pytestimportorskipfsspec.implementations.ftpr   clear_instance_cacher   stropenospathjoinwrite
subprocessPopensys
executabletimesleep	terminatewaitshutilrmtree	Exception)tmpdirr   dfPs        r   ftp_writabler1      s#    
 $8&&(**,FA	bggll1e$d	+q	5 ! 
,	{D!T64QUV	A	

1//			MM&! 
,	+  			 	
		MM&! 		s~   A5E77D5E7D-  E7<D E7DE7	D*'E7)D**E7-!E4E%$E4%	E1.E40E11E44E7)r   r*   r"   r$   r&   r   r   fsspec.implementations.cachedr   fixturer   r1        r   <module>r6      sR    	   
    ; ! !   r5   