os.pyi 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. O_RDONLY: int
  2. O_WRONLY: int
  3. O_RDWR: int
  4. O_APPEND: int
  5. O_CREAT: int
  6. def __init__(self):
  7. pass
  8. def mkdir(self, path: str, *mode):
  9. pass
  10. def rmdir(self, path: str):
  11. pass
  12. def chdir(self, path: str):
  13. pass
  14. def listdir(self, path: str) -> list:
  15. pass
  16. def getcwd(self) -> str:
  17. pass
  18. def open(self, filename: str, flags: int) -> FILE:
  19. pass
  20. def read(self, fd: FILE, len: int) -> str:
  21. pass
  22. def write(self, fd: FILE, buf: any) -> int:
  23. pass
  24. def lseek(self, fd: FILE, pos: int, how: int) -> int:
  25. pass
  26. def close(self, fd: FILE):
  27. pass
  28. def fstat(self, fd: FILE) -> fileStat:
  29. pass
  30. def remove(self, filename: str):
  31. pass
  32. def rename(self, old: str, new: str):
  33. pass
  34. class fileStat:
  35. def st_size(self) -> int:
  36. pass
  37. class path:
  38. def join(self, *paths) -> str:
  39. pass
  40. def split(self, path: str) -> tuple:
  41. pass
  42. def splitext(self, path: str) -> tuple:
  43. pass
  44. def basename(self, path: str) -> str:
  45. pass
  46. def dirname(self, path: str) -> str:
  47. pass
  48. def exists(self, path: str) -> bool:
  49. pass
  50. def isdir(self, path: str) -> bool:
  51. pass
  52. def isfile(self, path: str) -> bool:
  53. pass
  54. def isabs(self, path: str) -> bool:
  55. pass
  56. def abspath(self, path: str) -> str:
  57. pass