%PDF- %PDF-
Direktori : /proc/self/root/lib/python2.7/site-packages/paramiko/ |
Current File : //proc/self/root/lib/python2.7/site-packages/paramiko/sftp_handle.pyo |
� =OXc @ sb d Z d d l Z d d l m Z m Z d d l m Z d e f d � � YZ d d l m Z d S( s7 Abstraction of an SFTP file handle (for server mode). i����N( t SFTP_OP_UNSUPPORTEDt SFTP_OK( t ClosingContextManagert SFTPHandlec B sk e Z d Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z 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. i c C s( | | _ d | _ i | _ d | _ d S( 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__flagst Nonet _SFTPHandle__namet _SFTPHandle__filest _SFTPHandle__tell( t selft flags( ( s8 /usr/lib/python2.7/site-packages/paramiko/sftp_handle.pyt __init__'