403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/duplicity/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/duplicity/__pycache__/filechunkio.cpython-310.pyc
o

�~�_�
�@sJddlZddlZeedd�Zeedd�Zeedd�ZGdd�dej�ZdS)	�N�SEEK_SET�SEEK_CUR��SEEK_END�cs\eZdZdZd�fdd�	Zef�fdd	�	Z�fd
d�Zd�fd
d�	Zdd�Z	dd�Z
�ZS)�FileChunkIOzA
    A class that allows you reading only a chunk of a file.
    �rTrNcsj|�d�s	td��||_||_|durt�|�j|j|_tt|�j	|||g|�Ri|��|�
d�dS)a/
        Open a file chunk. The mode can only be 'r' for reading. Offset
        is the amount of bytes that the chunks starts after the real file's
        first byte. Bytes defines the amount of bytes the chunk has, which you
        can set to None to include the last byte of the real file.
        rzMode string must begin with 'r'Nr)�
startswith�
ValueError�offset�bytes�os�stat�st_size�superr�__init__�seek)�self�name�mode�closefdrr�args�kwargs��	__class__��7/usr/lib/python3/dist-packages/duplicity/filechunkio.pyrs
"zFileChunkIO.__init__cs`|tkrtt|��|j|�dS|tkr |�|��|�dS|tkr.|�|j|�dSdS)z/
        Move to a new chunk position.
        N)	rrrrrr�tellrr)rr�whencerrrr&s�zFileChunkIO.seekcstt|���|jS)z(
        Current file position.
        )rrrr�rrrrr1�zFileChunkIO.tell���cs:|dkr|j|��}t||g�}tt|��|�S|��S)z2
        Read and return at most n bytes.
        r)rr�minrr�read�readall)r�n�max_nrrrr#7s
zFileChunkIO.readcCs|�|j|���S)z/
        Read all data from the chunk.
        )r#rrrrrrr$Br zFileChunkIO.readallc
Cs||�t|��}t|�}z	||d|�<W|Sty=}zddl}t||j�s(|�|�d|�|d|�<WYd}~|Sd}~ww)z/
        Same as RawIOBase.readinto().
        Nr�b)r#�len�	TypeError�array�
isinstance)r�b�datar%�errr*rrr�readintoHs���zFileChunkIO.readinto)rTrN)r!)�__name__�
__module__�__qualname__�__doc__rrrrr#r$r/�
__classcell__rrrrrsr)�ior
�getattrrrr�FileIOrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit