Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/paramiko/__pycache__/sftp_handle.cpython-39.pyc
Ðазад
a s�h � @ sH d Z ddlZddlmZmZ ddlmZ G dd� de�Zddlm Z dS )z7 Abstraction of an SFTP file handle (for server mode). � N)�SFTP_OP_UNSUPPORTED�SFTP_OK)�ClosingContextManagerc @ sb e Zd ZdZddd�Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dS )� SFTPHandlea� 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. r c C s || _ d| _i | _d| _dS )a" 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�flags� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/paramiko/sftp_handle.py�__init__( s zSFTPHandle.__init__c C s<