123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- from dataclasses import dataclass
- from os import stat_result
- from pathlib import Path
- @dataclass
- class FakeStats:
- st_mode: int
- st_ino: int
- st_dev: int
- st_nlink: int
- st_uid: int
- st_gid: int
- st_size: int
- st_atime: float
- st_mtime: float
- st_ctime: float
- @dataclass
- class FakePathEntry:
- is_dir: bool
- is_file: bool
- stat: stat_result
- class FakePath(Path):
- def absolute(self):
- pass
- def cwd(self):
- pass
- def exists(self):
- pass
- def glob(self):
- pass
- def is_dir(self):
- pass
- def is_file(self):
- pass
- def iterdir(self):
- pass
- def joinpath(self):
- pass
- def lstat(self):
- return self.stat()
- def open(self):
- pass
- def parent(self):
- pass
- def parents(self):
- pass
- def read_bytes(self):
- pass
- def read_text(self):
- pass
- def rglob(self):
- pass
- def stat(self):
- pass
- def root(self):
- pass
- def stem(self):
- pass
- def suffix(self):
- pass
- def suffixes(self):
- pass
- if __name__ == "__main__":
- p = Path(".")
- print(p)
|