|
@@ -1,12 +1,27 @@
|
|
|
-from pathlib import Path, PurePath
|
|
|
+from pathlib import Path
|
|
|
from dataclasses import dataclass
|
|
|
-from typing import Union
|
|
|
-from transparentpath import TransparentPath
|
|
|
+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:
|
|
|
- pass
|
|
|
+ is_dir: bool
|
|
|
+ is_file: bool
|
|
|
+ stat: stat_result
|
|
|
|
|
|
|
|
|
class VirtualPath(Path):
|
|
@@ -38,13 +53,15 @@ class VirtualPath(Path):
|
|
|
pass
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|