o
    h                     @   s:   d dl Z d dlZd dlZdd Zejdddd ZdS )    Nc                 C   sl   |  d}|d |  d}td}tt |t|t| W d    d S 1 s/w   Y  d S )Nsource_file.txtcontentz+non_existent_directory/destination_file.txtfile)	joinwritefsspec
filesystempytestraisesFileNotFoundErrormvstr)tmpdirsourcedestinationfs r   l/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/fsspec/tests/abstract/mv.py"test_move_raises_error_with_tmpdir   s   



"r   	recursive)TFc                 C   s   | d}|d |d}t|}tjdkr"td| d nt|d | d}t	d	}t
t |jt|t|| d
 W d    n1 sNw   Y  tj|r[J tjdkrktd| d d S t|d d S )Nr   r   protected_directoryntzicacls "z" /deny Everyone:(W)im  zdestination_file.txtr   )r   z" /remove:d Everyonei  )r   r   mkdirr   osnamesystemchmodr   r   r	   r
   PermissionErrorr   pathexists)r   r   r   protected_dirprotected_pathr   r   r   r   r   -test_move_raises_error_with_tmpdir_permission   s    






r"   )r   r	   r   r   markparametrizer"   r   r   r   r   <module>   s    