403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.139
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/proc/self/root/usr/lib/python3/dist-packages/dulwich/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/proc/self/root/usr/lib/python3/dist-packages/dulwich/__pycache__/file.cpython-313.pyc
�

mEdg���t�SrSSKrSSKrSSKrSSKJr SSjrSSjrSSjr"SS\	5r
"S	S
5rg)
zSafe access to git files.�N)�ClassVarc�R�[R"U5 g![a gf=f)z1Ensure a directory exists, creating if necessary.N)�os�makedirs�FileExistsError)�dirnames �./usr/lib/python3/dist-packages/dulwich/file.py�ensure_dir_existsr
s%��
�
���G����
��
�s��
&�&c�0�[RRU5(d[R"X5 gSSKnUR
SUSS9up4[R"U5 [R"U5 [R"X5 [R"X5 [R"U5 g![a ef=f![a ef=f![a ef=f![a [R"XA5 ef=f)zCRename file with temporary backup file to rollback if rename fails.Nrz.tmp�.)�prefix�dir)	r�path�exists�rename�OSError�tempfile�mkstemp�close�remove)�oldname�newnamer�fd�tmpfiles     r	�
_fancy_renamer&s���
�7�7�>�>�'�"�"�	��I�I�g�'�	��� �(�(���S�(�I�
��
�����
�	�	�'��
�
�	�	�'�#��
�	�	�'�#��I�I�g���3�	��	����	�����
�����
�	�	�'�#�
��s/�C�?C�C$�C3�C�C!�$C0�3"Dc��SU;a[S5eSU;a[S5eSU;a[S5eSU;a[XX#5$[XU5$)a�Create a file object that obeys the git file locking protocol.

Returns: a builtin file object or a _GitFile object

Note: See _GitFile for a description of the file locking protocol.

Only read-only and write-only (binary) modes are supported; r+, w+, and a
are not.  To read and write from the same file, you can take advantage of
the fact that opening a file for write does not actually open the file you
request.

The default file mask makes any created files user-writable and
world-readable.

�az'append mode not supported for Git files�+z+read/write mode not supported for Git files�bz%text mode not supported for Git files�w)r�_GitFile�open)�filename�mode�bufsize�masks    r	�GitFiler'Gs^�� �d�{��?�@�@�
�d�{��C�D�D�
�$���=�>�>�
�d�{����6�6��H�G�,�,�c�0^�\rSrSrSrSU4SjjrSrU=r$)�
FileLocked�czFile is already locked.c�<>�XlX l[TU]
X5 g�N)r#�lockfilename�super�__init__)�selfr#r.�	__class__s   �r	r0�FileLocked.__init__fs��� �
�(��
����0r()r#r.��returnN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r0�__static_attributes__�
__classcell__)r2s@r	r*r*cs���!�1�1r(r*c��\rSrSr%Sr1Skr\\\\	S'1Skr
\\\\	S'SSjrSS	jrSS
jr
SSjrSrS
rSrSrg)r!�laXFile that follows the git locking protocol for writes.

All writes to a file foo will be written into foo.lock in the same
directory, and the lockfile will be renamed to overwrite the original file
on close.

Note: You *must* call close() or abort() on a _GitFile for the lock to be
    released. Typically this will happen in a finally block.
>r$�name�closed�errors�encoding�newlines�	softspace�PROXY_PROPERTIES>�read�seek�tell�flush�write�fileno�isatty�__iter__�readline�truncate�	readlines�
writelines�
PROXY_METHODSNc	�f�Xl[UR[5(aURS-UlOURS-Ul[R
"UR[R[R-[R-[[SS5-U5n[R"XRU5Ul
SUlURH#n[!X[URU55 M% g![an[XR5UeSnAff=f)Ns.lockz.lock�O_BINARYrF)�	_filename�
isinstance�bytes�
_lockfilenamerr"�O_RDWR�O_CREAT�O_EXCL�getattrrr*�fdopen�_file�_closedrR�setattr)r1r#r$r%r&r�exc�methods        r	r0�_GitFile.__init__�s���!���d�n�n�e�,�,�!%���(�!:�D��!%���'�!9�D��	D�����"�"��	�	�B�J�J�&����2�W�R��Q�5O�O���B��Y�Y�r��1��
�����(�(�F��D�'�$�*�*�f�"=�>�)���	D��X�'9�'9�:��C��	D�s�A$D�
D0�D+�+D0c���UR(agURR5 [R"UR
5 SUlg![a
 SUlgf=f)zpClose and discard the lockfile without overwriting the target.

If the file is already closed, this is a no-op.
NT)r_r^rrrrX�FileNotFoundError�r1s r	�abort�_GitFile.abort�sR��
�<�<���
�
����	 ��I�I�d�(�(�)��D�L�� �	 ��D�L�	 �s�'A�A*�)A*c�t�UR(agURR5 [R"URR55 URR
5 [[SS5b,[R"URUR5 O`[RS:wa,[R"URUR5 O [URUR5 UR5 g!UR5 f=f)a�Close this file, saving the lockfile over the original.

Note: If this method fails, it will attempt to delete the lockfile.
    However, it is not guaranteed to do so (e.g. if a filesystem
    becomes suddenly read-only), which will prevent future writes to
    this file until the lockfile is removed manually.

Raises:
  OSError: if the original file could not be overwritten. The
    lock file is still closed, so further attempts to write to the same
    file object will raise ValueError.
N�replace�win32)r_r^rIr�fsyncrKrr\rjrXrU�sys�platformrrrgrfs r	r�_GitFile.close�s����<�<���
�
����
������"�"�$�%��
�
����	��r�9�d�+�7��
�
�4�-�-�t�~�~�>��<�<�7�*��I�I�d�0�0�$�.�.�A�"�$�"4�"4�d�n�n�E��J�J�L��D�J�J�L�s
�6BD%�%D7c��[USS5(d/[R"SU<3[SS9 UR	5 gg)Nr_Tz	unclosed �)�
stacklevel)r\�warnings�warn�ResourceWarningrgrfs r	�__del__�_GitFile.__del__�s6���t�Y��-�-��M�M�I�d�X�.��A�N��J�J�L�.r(c��U$r-�rfs r	�	__enter__�_GitFile.__enter__�s���r(c�L�UbUR5 gUR5 gr-)rgr)r1�exc_type�exc_val�exc_tbs    r	�__exit__�_GitFile.__exit__�s�����J�J�L��J�J�Lr(c�b�XR;a[URU5$[U5e)z,Proxy property calls to the underlying file.)rEr\r^�AttributeError)r1r?s  r	�__getattr__�_GitFile.__getattr__�s*���(�(�(��4�:�:�t�,�,��T�"�"r()r_r^rUrXr4)r6r7r8r9r:rEr�set�str�__annotations__rRr0rgrrvrzr�r�r;ryr(r	r!r!lsY���,��h�s�3�x�(��
)�M�8�C��H�%�
�?�(
 ��>�
��#r(r!r4)�rb���i�)r:rrmrs�typingrr
rr'�	Exceptionr*r!ryr(r	�<module>r�s>��, �	�
���
��B-�81��1�w#�w#r(

Youez - 2016 - github.com/yon3zu
LinuXploit