massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / sftp_si.pyi
1 from typing import Any
2
3 from paramiko.server import ServerInterface
4 from paramiko.sftp_attr import SFTPAttributes
5 from paramiko.sftp_handle import SFTPHandle
6
7 class SFTPServerInterface:
8     def __init__(self, server: ServerInterface, *largs: Any, **kwargs: Any) -> None: ...
9     def session_started(self) -> None: ...
10     def session_ended(self) -> None: ...
11     def open(self, path: str, flags: int, attr: SFTPAttributes) -> SFTPHandle | int: ...
12     def list_folder(self, path: str) -> list[SFTPAttributes] | int: ...
13     def stat(self, path: str) -> SFTPAttributes | int: ...
14     def lstat(self, path: str) -> SFTPAttributes | int: ...
15     def remove(self, path: str) -> int: ...
16     def rename(self, oldpath: str, newpath: str) -> int: ...
17     def posix_rename(self, oldpath: str, newpath: str) -> int: ...
18     def mkdir(self, path: str, attr: SFTPAttributes) -> int: ...
19     def rmdir(self, path: str) -> int: ...
20     def chattr(self, path: str, attr: SFTPAttributes) -> int: ...
21     def canonicalize(self, path: str) -> str: ...
22     def readlink(self, path: str) -> str | int: ...
23     def symlink(self, target_path: str, path: str) -> int: ...