DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Program Files/MySQL/MySQL Workbench 6.3 CE/python/site-packages/paramiko/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /Program Files/MySQL/MySQL Workbench 6.3 CE/python/site-packages/paramiko/sftp_handle.pyc

rKXc@sbdZddlZddlmZmZddlmZdefdYZddlm	Z	dS(s7
Abstraction of an SFTP file handle (for server mode).
iN(tSFTP_OP_UNSUPPORTEDtSFTP_OK(tClosingContextManagert
SFTPHandlecBskeZdZddZdZdZdZdZdZdZ	d	Z
d
ZdZRS(s
    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.
    icCs(||_d|_i|_d|_dS(s
        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(t_SFTPHandle__flagstNonet_SFTPHandle__namet_SFTPHandle__filest_SFTPHandle__tell(tselftflags((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyt__init__'s			cCsZt|dd}|dk	r+|jnt|dd}|dk	rV|jndS(s&
        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.
        treadfilet	writefileN(tgetattrRtclose(R	RR
((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyR5s
cCst|dd}|dkr"tSy\|jdkrF|j|_n||jkrn|j|||_n|j|}Wn)tk
r}d|_tj	|j
SX|jt|7_|S(sh
        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.
        :type offset: int or long
        :param int length: number of bytes to attempt to read.
        :return: data read from the file, or an SFTP error code, as a `str`.
        RN(RRRRttelltseektreadtIOErrort
SFTPServert
convert_errnoterrnotlen(R	toffsettlengthRtdatate((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyRHs
	cCst|dd}|dkr"tSy}|jtj@dkr|jdkr\|j|_n||jkr|j|||_qn|j	||j
Wn)tk
r}d|_tj
|jSX|jdk	r|jt|7_ntS(s
        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.
        :type offset: int or long
        :param str data: data to write into the file.
        :return: an SFTP error code like `.SFTP_OK`.
        R
iN(RRRRtostO_APPENDRRRtwritetflushRRRRRR(R	RRR
R((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyRks$

	cCstS(s
        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(R	((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pytstatscCstS(se
        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	tattr((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pytchattrs	cCs
||_dS(s
        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	tfiles((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyt
_set_filesscCs!|jd }|jd|_|S(s^
        Used by the SFTP server code to retreive a cached directory
        listing.
        i(R(R	tfnlist((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyt_get_next_filess
cCs|jS(N(R(R	((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyt	_get_namescCs
||_dS(N(R(R	tname((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyt	_set_names(
t__name__t
__module__t__doc__RRRRR R"R$R&R'R)(((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyRs
		#	'	
	
				(R(
R,Rt
paramiko.sftpRRt
paramiko.utilRRtparamiko.sftp_serverR(((sZC:\Program Files\MySQL\MySQL Workbench 6.3 CE/python/site-packages\paramiko\sftp_handle.pyt<module>s


Anon7 - 2022
AnonSec Team