1 from logging import Logger
2 from typing import Any, Type
4 from paramiko.channel import Channel
5 from paramiko.server import ServerInterface, SubsystemHandler
6 from paramiko.sftp import BaseSFTP
7 from paramiko.sftp_attr import SFTPAttributes
8 from paramiko.sftp_handle import SFTPHandle
9 from paramiko.sftp_si import SFTPServerInterface
10 from paramiko.transport import Transport
12 class SFTPServer(BaseSFTP, SubsystemHandler):
16 file_table: dict[bytes, SFTPHandle]
17 folder_table: dict[bytes, SFTPHandle]
18 server: SFTPServerInterface
21 self, channel: Channel, name: str, server: ServerInterface, sftp_si: Type[SFTPServerInterface], *largs: Any, **kwargs: Any
23 def start_subsystem(self, name: str, transport: Transport, channel: Channel) -> None: ...
24 def finish_subsystem(self) -> None: ...
26 def convert_errno(e: int) -> int: ...
28 def set_file_attr(filename: str, attr: SFTPAttributes) -> None: ...