← Back
Editing: move.cpython-311.pyc
� �|�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 �<