Repository URL to install this package:
Version:
3.4.37 ▾
|
ó °EYc @ sH d Z d d l Z d d l Z d d l m Z d e f d YZ d S( s3 An interface to override for SFTP server support. iÿÿÿÿN( t SFTP_OP_UNSUPPORTEDt SFTPServerInterfacec B s e Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z RS( s This class defines an interface for controlling the behavior of paramiko when using the `.SFTPServer` subsystem to provide an SFTP server. Methods on this class are called from the SFTP session's thread, so you can block as long as necessary without affecting other sessions (even other SFTP sessions). However, raising an exception will usually cause the SFTP session to abruptly end, so you will usually want to catch exceptions and return an appropriate error code. All paths are in string form instead of unicode because not all SFTP clients & servers obey the requirement that paths be encoded in UTF-8. c O s t t | j | | d S( s Create a new SFTPServerInterface object. This method does nothing by default and is meant to be overridden by subclasses. :param .ServerInterface server: the server object associated with this channel and SFTP subsystem N( t superR t __init__( t selft servert largst kwargs( ( sE /home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/sftp_si.pyR * s c C s d S( sÁ The SFTP server session has just started. This method is meant to be overridden to perform any necessary setup before handling callbacks from SFTP operations. N( ( R ( ( sE /home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/sftp_si.pyt session_started4 s c C s d S( sõ The SFTP server session has just ended, either cleanly or via an exception. This method is meant to be overridden to perform any necessary cleanup before this `.SFTPServerInterface` object is destroyed. N( ( R ( ( sE /home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/sftp_si.pyt session_ended<