-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
141 lines (106 loc) · 3.05 KB
/
__init__.py
File metadata and controls
141 lines (106 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
__all__ = [
"AttributeView",
"BasicFileAttributes",
"FileAttribute",
"FileAttributeView",
"FileStoreAttributeView",
"FileTime",
"PosixFilePermission",
"UserPrincipal",
]
from typing import Any, List, Union
from java.lang import Enum, Object
from java.security import Principal
from java.time import Instant
from java.util.concurrent import TimeUnit
class AttributeView(object):
def name(self):
# type: () -> Union[str, unicode]
raise NotImplementedError
class BasicFileAttributes(object):
def creationTime(self):
# type: () -> FileTime
raise NotImplementedError
def fileKey(self):
# type: () -> Object
raise NotImplementedError
def isDirectory(self):
# type: () -> bool
raise NotImplementedError
def isOther(self):
# type: () -> bool
raise NotImplementedError
def isRegularFile(self):
# type: () -> bool
raise NotImplementedError
def isSymbolicLink(self):
# type: () -> bool
raise NotImplementedError
def lastAccessTime(self):
# type: () -> FileTime
raise NotImplementedError
def lastModifiedTime(self):
# type: () -> FileTime
raise NotImplementedError
def size(self):
# type: () -> long
raise NotImplementedError
class FileAttribute(object):
def name(self):
# type: () -> Union[str, unicode]
pass
def value(self):
# type: () -> Any
pass
class FileAttributeView(AttributeView):
def name(self):
# type: () -> Union[str, unicode]
pass
class FileTime(Object):
def compareTo(self, other):
# type: (FileTime) -> int
pass
@staticmethod
def fromMillis(value):
# type: (long) -> FileTime
pass
def to(self, unit):
# type: (TimeUnit) -> long
pass
def toInstant(self):
# type: () -> Instant
pass
def toMillis(self):
# type: () -> long
pass
class PosixFilePermission(Enum):
GROUP_EXECUTE = None # type: PosixFilePermission
GROUP_READ = None # type: PosixFilePermission
GROUP_WRITE = None # type: PosixFilePermission
OTHERS_EXECUTE = None # type: PosixFilePermission
OTHERS_READ = None # type: PosixFilePermission
OTHERS_WRITE = None # type: PosixFilePermission
OWNER_EXECUTE = None # type: PosixFilePermission
OWNER_READ = None # type: PosixFilePermission
OWNER_WRITE = None # type: PosixFilePermission
@staticmethod
def values():
# type: () -> List[PosixFilePermission]
pass
class UserPrincipal(Principal):
def equals(self, another):
# type: (Object) -> bool
return True
def getName(self):
# type: () -> Union[str, unicode]
pass
def hashCode(self):
# type: () -> int
pass
def toString(self):
# type: () -> Union[str, unicode]
pass
class FileStoreAttributeView(AttributeView):
def name(self):
# type: () -> Union[str, unicode]
pass