https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib64/python2.7/site-packages/django/core/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/core/files/move.pyc
�
r�\c@s�dZddlZddlmZyddlmZWn&ek
r^ddlZd�ZnXdgZd�Z	de
d
�ZdS(s�
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")
i����N(tlocks(tcopystatcCsutj|�}tj|j�}ttd�rOtj||j|jf�nttd�rqtj||�ndS(s?Copy all stat info (mode bits, atime and mtime) from src to dsttutimetchmodN(	toststattS_IMODEtst_modethasattrRtst_atimetst_mtimeR(tsrctdsttsttmode((s8/tmp/pip-install-XxeQeY/django/django/core/files/move.pyRstfile_move_safecCs{ttjd�rAytjj||�SWqAtk
r=tSXntjjtjj|��tjjtjj|��kS(Ntsamefile(RRtpathRtOSErrortFalsetnormcasetabspath(RR((s8/tmp/pip-install-XxeQeY/django/django/core/files/move.pyt	_samefiles
ii@cCs�t||�rdSyG|rEtj|tj�rEtd|��ntj||�dSWntk
rmnXt|d���}tj|tjtj	Bt
tdd�B|s�tjndB�}zOtj
|tj�d}x/|dkr|j|�}tj||�q�WWdtj|�tj|�XWdQXt||�ytj|�WnItk
r�}t
|dd�dkr�t
|d	d�d
kr��q�nXdS(sg
    Moves a file from one location to another in the safest way possible.

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

    If the destination file exists and ``allow_overwrite`` is ``False``, this
    function will throw an ``IOError``.
    Ns7Destination file %s exists and allow_overwrite is FalsetrbtO_BINARYittwinerrori terrnoi
(RRtaccesstF_OKtIOErrortrenameRtopentO_WRONLYtO_CREATtgetattrtO_EXCLRtlocktLOCK_EXtNonetreadtwritetunlocktcloseRtremove(t
old_file_namet
new_file_namet
chunk_sizetallow_overwritetold_filetfdt
current_chunkte((s8/tmp/pip-install-XxeQeY/django/django/core/files/move.pyR&s4
&

0i(t__doc__Rtdjango.core.filesRtshutilRtImportErrorRt__all__RRR(((s8/tmp/pip-install-XxeQeY/django/django/core/files/move.pyt<module>s

			

https://t.me/AnonymousX5 - 2025