__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

�|�g��N�SrSSKrSSKJrJr SSKJr "SS\5rSSKJ	r	 g)z7
Abstraction of an SFTP file handle (for server mode).
�N)�SFTP_OP_UNSUPPORTED�SFTP_OK)�ClosingContextManagerc�X�\rSrSrSrSSjrSrSrSrSr	Sr
S	rS
rSr
SrS
rg)�
SFTPHandle�az
Abstract object representing a handle to an open file (or folder) in an
SFTP server implementation.  Each handle has a string representation used
by the client to refer to the underlying file.

Server implementations can (and should) subclass SFTPHandle to implement
features of a file handle, like `stat` or `chattr`.

Instances of this class may be used as context managers.
c�:�XlSUl0UlSUlg)z�
Create a new file handle representing a local file being served over
SFTP.  If ``flags`` is passed in, it's used to determine if the file
is open in append mode.

:param int flags: optional flags as passed to
    `.SFTPServerInterface.open`
N)�_SFTPHandle__flags�_SFTPHandle__name�_SFTPHandle__files�_SFTPHandle__tell)�self�flagss  �6/usr/lib/python3/dist-packages/paramiko/sftp_handle.py�__init__�SFTPHandle.__init__(s�������������c��[USS5nUbUR5 [USS5nUbUR5 gg)a�
When a client closes a file, this method is called on the handle.
Normally you would use this method to close the underlying OS level
file object(s).

The default implementation checks for attributes on ``self`` named
``readfile`` and/or ``writefile``, and if either or both are present,
their ``close()`` methods are called.  This means that if you are
using the default implementations of `read` and `write`, this
method's default implementation should be fine also.
�readfileN�	writefile)�getattr�close)rrrs   rr�SFTPHandle.close7sE���4��T�2�����N�N���D�+�t�4�	�� ��O�O��!rc��[USS5nUc[$URcUR5UlXR:waUR	U5 XlURU5nU=R[U5-
slU$![a1nSUl[R"UR5sSnA$SnAff=f)a�
Read up to ``length`` bytes from this file, starting at position
``offset``.  The offset may be a Python long, since SFTP allows it
to be 64 bits.

If the end of the file has been reached, this method may return an
empty string to signify EOF, or it may also return ``SFTP_EOF``.

The default implementation checks for an attribute on ``self`` named
``readfile``, and if present, performs the read operation on the Python
file-like object found there.  (This is meant as a time saver for the
common case where you are wrapping a Python file object.)

:param offset: position in the file to start reading from.
:param int length: number of bytes to attempt to read.
:return: the `bytes` read, or an error code `int`.
rN)rrr
�tell�seek�read�IOError�
SFTPServer�
convert_errno�errno�len)r�offset�lengthr�data�es      rr�SFTPHandle.readJs���$�4��T�2����&�&�		5��{�{�"�&�m�m�o������$��
�
�f�%�$���=�=��(�D�	
���s�4�y� �����	�	5��D�K��+�+�A�G�G�4�4��	5�s�AB�
C�&C�C�Cc�"�[USS5nUc[$UR[R-S:XaHUR
cUR
5UlXR
:waURU5 XlURU5 UR5 UR
bU=R
[U5-
sl[$![a1nSUl[R"UR5sSnA$SnAff=f)a�
Write ``data`` into this file at position ``offset``.  Extending the
file past its original end is expected.  Unlike Python's normal
``write()`` methods, this method cannot do a partial write: it must
write all of ``data`` or else return an error.

The default implementation checks for an attribute on ``self`` named
``writefile``, and if present, performs the write operation on the
Python file-like object found there.  The attribute is named
differently from ``readfile`` to make it easy to implement read-only
(or write-only) files, but if both attributes are present, they should
refer to the same file.

:param offset: position in the file to start reading from.
:param bytes data: data to write into the file.
:return: an SFTP error code like ``SFTP_OK``.
rNr)rrr
�os�O_APPENDr
rr�write�flushrrr r!r"r)rr#r%rr&s     rr+�SFTPHandle.writels���$�D�+�t�4�	���&�&�	5����r�{�{�*�q�0��;�;�&�"+�.�.�"2�D�K��[�[�(��N�N�6�*�"(�K��O�O�D�!��O�O���;�;�"��K�K�3�t�9�$�K�����	5��D�K��+�+�A�G�G�4�4��	5�s�B
C�
D�&D	�D�	Dc��[$)aY
Return an `.SFTPAttributes` object referring to this open file, or an
error code.  This is equivalent to `.SFTPServerInterface.stat`, except
it's called on an open file instead of a path.

:return:
    an attributes object for the given file, or an SFTP error code
    (like ``SFTP_PERMISSION_DENIED``).
:rtype: `.SFTPAttributes` or error code
�r�rs r�stat�SFTPHandle.stat�s
��#�"rc��[$)a6
Change the attributes of this file.  The ``attr`` object will contain
only those fields provided by the client in its request, so you should
check for the presence of fields before using them.

:param .SFTPAttributes attr: the attributes to change on this file.
:return: an `int` error code like ``SFTP_OK``.
r/)r�attrs  r�chattr�SFTPHandle.chattr�s
��#�"rc��Xlg)z�
Used by the SFTP server code to cache a directory listing.  (In
the SFTP protocol, listing a directory is a multi-stage process
requiring a temporary handle.)
N�r)r�filess  r�
_set_files�SFTPHandle._set_files�s	���rc�L�URSSnURSSUlU$)zF
Used by the SFTP server code to retrieve a cached directory
listing.
N�r8)r�fnlists  r�_get_next_files�SFTPHandle._get_next_files�s+��
���c�r�"���|�|�B�C�(����
rc��UR$�N�rr0s r�	_get_name�SFTPHandle._get_name�s���{�{�rc��XlgrBrC)r�names  r�	_set_name�SFTPHandle._set_name�s���r)�__files�__flags�__name�__tellN)r)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrrr+r1r5r:r?rDrH�__static_attributes__�rrrrs;��	�
��& �D$�L#�	#����rr)r)
rRr)�
paramiko.sftprr�
paramiko.utilrr�paramiko.sftp_serverrrTrr�<module>rXs*��&�
�6�/�e�&�e�P,r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 3.64 KB 0644
_version.cpython-313.pyc File 292 B 0644
_winapi.cpython-313.pyc File 16.39 KB 0644
agent.cpython-313.pyc File 22.25 KB 0644
auth_handler.cpython-313.pyc File 45.82 KB 0644
auth_strategy.cpython-313.pyc File 11.99 KB 0644
ber.cpython-313.pyc File 6.06 KB 0644
buffered_pipe.cpython-313.pyc File 8.82 KB 0644
channel.cpython-313.pyc File 58.82 KB 0644
client.cpython-313.pyc File 30.79 KB 0644
common.cpython-313.pyc File 7 KB 0644
compress.cpython-313.pyc File 1.57 KB 0644
config.cpython-313.pyc File 22.72 KB 0644
dsskey.cpython-313.pyc File 10.98 KB 0644
ecdsakey.cpython-313.pyc File 14.82 KB 0644
ed25519key.cpython-313.pyc File 8.15 KB 0644
file.cpython-313.pyc File 19.55 KB 0644
hostkeys.cpython-313.pyc File 16.65 KB 0644
kex_curve25519.cpython-313.pyc File 7.82 KB 0644
kex_ecdh_nist.cpython-313.pyc File 8.58 KB 0644
kex_gex.cpython-313.pyc File 13.47 KB 0644
kex_group1.cpython-313.pyc File 7.4 KB 0644
kex_group14.cpython-313.pyc File 1.26 KB 0644
kex_group16.cpython-313.pyc File 1.29 KB 0644
kex_gss.cpython-313.pyc File 29.75 KB 0644
message.cpython-313.pyc File 11.6 KB 0644
packet.cpython-313.pyc File 26.31 KB 0644
pipe.cpython-313.pyc File 6.4 KB 0644
pkey.cpython-313.pyc File 35.02 KB 0644
primes.cpython-313.pyc File 4.23 KB 0644
proxy.cpython-313.pyc File 5.03 KB 0644
rsakey.cpython-313.pyc File 9.43 KB 0644
server.cpython-313.pyc File 29.38 KB 0644
sftp.cpython-313.pyc File 7.11 KB 0644
sftp_attr.cpython-313.pyc File 10.42 KB 0644
sftp_client.cpython-313.pyc File 38.72 KB 0644
sftp_file.cpython-313.pyc File 23.91 KB 0644
sftp_handle.cpython-313.pyc File 7.51 KB 0644
sftp_server.cpython-313.pyc File 22.36 KB 0644
sftp_si.cpython-313.pyc File 11.78 KB 0644
ssh_exception.cpython-313.pyc File 9.38 KB 0644
ssh_gss.cpython-313.pyc File 27.47 KB 0644
transport.cpython-313.pyc File 134.97 KB 0644
util.cpython-313.pyc File 12.42 KB 0644
win_openssh.cpython-313.pyc File 2.36 KB 0644
win_pageant.cpython-313.pyc File 4.82 KB 0644
Filemanager