
    7Th                     f    S SK r S SKrS SKrS r\R                  R                  SS5      S 5       rg)    Nc                 F   U R                  S5      nUR                  S5        U R                  S5      n[        R                  " S5      n[        R
                  " [        5         UR                  [        U5      [        U5      5        S S S 5        g ! , (       d  f       g = f)Nsource_file.txtcontentz+non_existent_directory/destination_file.txtfile)	joinwritefsspec
filesystempytestraisesFileNotFoundErrormvstr)tmpdirsourcedestinationfss       P/var/www/auris/envauris/lib/python3.13/site-packages/fsspec/tests/abstract/mv.py"test_move_raises_error_with_tmpdirr      sr    [[*+F
LL ++KLK 
		6	"B 
(	)
c&k3{+, 
*	)	)s   $%B
B 	recursive)TFc                    UR                  S5      nUR                  S5        UR                  S5      n[        U5      n[        R
                  S:X  a  [        R                  " SU S35        O[        R                  " US5        UR                  S5      n[        R                  " S	5      n[        R                  " [        5         UR                  [        U5      [        U5      U S
9  S S S 5        [        R                  R                  U5      (       a   e[        R
                  S:X  a  [        R                  " SU S35        g [        R                  " US5        g ! , (       d  f       N{= f)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   s          r   -test_move_raises_error_with_tmpdir_permissionr$      s    [[*+F
LL LL!67M'N 
ww$
		H^,,@AB
'  $$%;<K 
		6	"B 
	'
c&k3{+yA 
( ww~~k**** 
ww$
		H^,,@AB
' 
(	's   $E
E-)r   r   r	   r   markparametrizer$        r   <module>r)      s8    	  -  m4 ( 5 (r(   