| 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 : |
�
�|�e� � �F � d Z ddlZddlZddlmZ ddlmZ dgZd� 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 � � t t j d� � r2 t j � | |� � S # t $ r Y dS w xY wt j � t j � | � � � � t j � t j � |� � � � k S )N�samefileF)�hasattr�os�pathr �OSError�normcase�abspath)�src�dsts �8/usr/lib/python3/dist-packages/django/core/files/move.py� _samefiler s� � ��r�w�
�#�#� � ��7�#�#�C��-�-�-��� � � ��5�5� ����
�G���R�W�_�_�S�1�1�2�2��G���R�W�_�_�S�1�1�2�2�
3� 4s �<