12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- from pathlib import Path
- from dataclasses import dataclass
- from os import stat_result
- @dataclass
- class VirtualStats:
- 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 VirtualPathEntry:
- is_dir: bool
- is_file: bool
- stat: stat_result
- class VirtualPath(Path):
- 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 lstat(self):
- return self.stat()
- def open(self):
- pass
- def stat(self):
- pass
|