403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/django/core/files/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/django/core/files/__pycache__/move.cpython-311.pyc
�

�|�e���F�dZddlZddlZddlmZddlmZdgZd�Zd
d	�Z	dS)z�
Move a file in the safest way possible::

    >>> from django.core.files.move import file_move_safe
    >>> file_move_safe("/tmp/old_file", "/tmp/new_file")
�N)�copystat)�locks�file_move_safec��ttjd��r2	tj�||��S#t$rYdSwxYwtj�tj�|����tj�tj�|����kS)N�samefileF)�hasattr�os�pathr�OSError�normcase�abspath)�src�dsts  �8/usr/lib/python3/dist-packages/django/core/files/move.py�	_samefilers����r�w�
�#�#��	��7�#�#�C��-�-�-���	�	�	��5�5�	����
�G���R�W�_�_�S�1�1�2�2��G���R�W�_�_�S�1�1�2�2�
3�4s�<�
A
�	A
�Fc
�:�t||��rdS	|s1tj|tj��rt	d|z���tj||��dS#t$rYnwxYwt|d��5}tj|tjtj	zttdd��z|stjndz��}	tj
|tj��d}|dkr0|�|��}tj||��|dk�0tj|��tj|��n-#tj|��tj|��wxYw	ddd��n#1swxYwY	t'||��n-#t($r }|jt*jkr�Yd}~nd}~wwxYw	tj|��dS#t($r!}t|dd��dkr�Yd}~dSd}~wwxYw)	aU
    Move a file from one location to another in the safest way possible.

    First, try ``os.rename``, which is simple but will break across filesystems.
    If that fails, stream manually from one file to another in pure Python.

    If the destination file exists and ``allow_overwrite`` is ``False``, raise
    ``FileExistsError``.
    Nz8Destination file %s exists and allow_overwrite is False.�rb�O_BINARYr��winerror� )rr	�access�F_OK�FileExistsError�renamer�open�O_WRONLY�O_CREAT�getattr�O_EXCLr�lock�LOCK_EX�read�write�unlock�closer�PermissionError�errno�EPERM�remove)�
old_file_name�
new_file_name�
chunk_size�allow_overwrite�old_file�fd�
current_chunk�es        rrrs�����
�.�.����	
��	n�2�9�]�B�G�#D�#D�	n�!�"\�_l�"l�m�m�m�
�	�-��/�/�/�����
�
�
�	
��
����
�m�T�	"�	"��h�
�W�]�R�[�2�:�%=���J�XY�@Z�@Z�%Z�7F�&M�b�i�i�A�&O�Q�Q��	��J�r�5�=�)�)�)� �M��3�&�&� (�
�
�j� 9� 9�
����]�+�+�+� �3�&�&�
�L������H�R�L�L�L�L��
�L������H�R�L�L�L�L����L����������������������
�.�.�.�.������
�7�e�k�!�!��"�!�!�!�!�����	�����
�	�-� � � � � ������
�1�j�!�$�$��*�*��+�*�*�*�*�*��������sn�AA�
A+�*A+�>AF�AE�+)F�*E>�>F�F�F�F+�+
G�5G�G�G/�/
H�9H�H)rF)
�__doc__r)r	�shutilr�django.core.filesr�__all__rr�rr�<module>r9s|����
����	�	�	�	�������#�#�#�#�#�#��
��
4�
4�
4�9�9�9�9�9�9r

Youez - 2016 - github.com/yon3zu
LinuXploit