← back to Atmos Game
assets/gen/.venv/lib/python3.12/site-packages/fsspec/tests/abstract/__pycache__/put.cpython-312.pyc
100 lines
�
c�bj�R � �D � d dl mZ d dlmZ d dlZd dlmZ G d� d� Zy)� )�md5)�productN)�GLOB_EDGE_CASES_TESTSc � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
ej j ed ed
� d� � Zd� Zd
� Zd� Zd� Zd� Zy)�AbstractPutTestsc � � |}|}|j |� |s|j ||d� � |j |� sJ � ||d� } ||d� }
|j ||d� |� |j | � sJ �|j ||dd� |� |j |
� sJ �|j | |
g� |j
| � rJ �|j
|
� rJ �|j ||d� |dz � |j |� sJ �|j | � sJ �|j ||dd� |dz � |j |
� sJ �y )N�dummy�file2�subfile1�subdir�/)�mkdir�touch�isdir�put�isfile�rm�exists)�self�fs�fs_join� fs_target�
local_join� local_bulk_operations_scenario_0�supports_empty_directories�source�target�target_file2�target_subfile1s �p/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/fsspec/tests/abstract/put.py�#test_put_file_to_existing_directoryz4AbstractPutTests.test_put_file_to_existing_directory
sQ � � 2����
�����)��H�H�W�V�W�-�.��x�x������v�w�/��!�&�*�5�� ���z�&�'�*�F�3��y�y��&�&�&� ���z�&�(�J�7��@��y�y��)�)�)� ���|�_�-�.��9�9�\�*�*�*��9�9�_�-�-�-� ���z�&�'�*�F�S�L�9��x�x������y�y��&�&�&�
���z�&�(�J�7��#��F��y�y��)�)�)� c � � |}|}|j |� |j ||dd� ||d� � |j |� sJ �|j ||d� � sJ �|j ||dd� � sJ �y )Nr r znewdir/�newdir�r r r r �r r r r r r r r s r �test_put_file_to_new_directoryz/AbstractPutTests.test_put_file_to_new_directory5 s� � � 2����
�����
����v�x��4�g�f�i�6P�
� �x�x������x�x����1�2�2�2��y�y����:�>�?�?�?r"