comparison stubs/twisted/python/filepath.pyi @ 1863:0f0ff27e55a3

stubs, mostly autogen or empty Ignore-this: bc70818d2bc92bf022c65c3572b9775e
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 25 May 2019 12:01:26 +0000
parents
children
comparison
equal deleted inserted replaced
1862:d92757c88817 1863:0f0ff27e55a3
1 # Stubs for twisted.python.filepath (Python 3)
2 #
3 # NOTE: This dynamically typed stub was automatically generated by stubgen.
4
5 import base64
6 import os
7 from twisted.python.util import FancyEqMixin
8 from typing import Any, Optional
9 from zope.interface import Interface
10
11 islink: Any
12 randomBytes = os.urandom
13 armor = base64.urlsafe_b64encode
14
15 class IFilePath(Interface):
16 def child(self, name: Any) -> None: ...
17 def open(self, mode: str = ...) -> None: ...
18 def changed(self, ) -> None: ...
19 def getsize(self, ) -> None: ...
20 def getModificationTime(self, ) -> None: ...
21 def getStatusChangeTime(self, ) -> None: ...
22 def getAccessTime(self, ) -> None: ...
23 def exists(self, ) -> None: ...
24 def isdir(self, ) -> None: ...
25 def isfile(self, ) -> None: ...
26 def children(self, ) -> None: ...
27 def basename(self, ) -> None: ...
28 def parent(self, ) -> None: ...
29 def sibling(self, name: Any) -> None: ...
30
31 class InsecurePath(Exception): ...
32 class LinkError(Exception): ...
33
34 class UnlistableError(OSError):
35 originalException: Any = ...
36 def __init__(self, originalException: Any) -> None: ...
37
38 class _WindowsUnlistableError(UnlistableError, WindowsError): ...
39
40 class AbstractFilePath:
41 def getContent(self): ...
42 def parents(self) -> None: ...
43 def children(self): ...
44 def walk(self, descend: Optional[Any] = ...) -> None: ...
45 def sibling(self, path: Any): ...
46 def descendant(self, segments: Any): ...
47 def segmentsFrom(self, ancestor: Any): ...
48 def __hash__(self): ...
49 def getmtime(self): ...
50 def getatime(self): ...
51 def getctime(self): ...
52
53 class RWX(FancyEqMixin):
54 compareAttributes: Any = ...
55 read: Any = ...
56 write: Any = ...
57 execute: Any = ...
58 def __init__(self, readable: Any, writable: Any, executable: Any) -> None: ...
59 def shorthand(self): ...
60
61 class Permissions(FancyEqMixin):
62 compareAttributes: Any = ...
63 def __init__(self, statModeInt: Any) -> None: ...
64 def shorthand(self): ...
65
66 class _SpecialNoValue: ...
67
68 class FilePath(AbstractFilePath):
69 path: Any = ...
70 alwaysCreate: Any = ...
71 def __init__(self, path: Any, alwaysCreate: bool = ...) -> None: ...
72 @property
73 def sep(self): ...
74 def asBytesMode(self, encoding: Optional[Any] = ...): ...
75 def asTextMode(self, encoding: Optional[Any] = ...): ...
76 def child(self, path: Any): ...
77 def preauthChild(self, path: Any): ...
78 def childSearchPreauth(self, *paths: Any): ...
79 def siblingExtensionSearch(self, *exts: Any): ...
80 def realpath(self): ...
81 def siblingExtension(self, ext: Any): ...
82 def linkTo(self, linkFilePath: Any) -> None: ...
83 def open(self, mode: str = ...): ...
84 def restat(self, reraise: bool = ...) -> None: ...
85 def changed(self) -> None: ...
86 def chmod(self, mode: Any) -> None: ...
87 def getsize(self): ...
88 def getModificationTime(self): ...
89 def getStatusChangeTime(self): ...
90 def getAccessTime(self): ...
91 def getInodeNumber(self): ...
92 def getDevice(self): ...
93 def getNumberOfHardLinks(self): ...
94 def getUserID(self): ...
95 def getGroupID(self): ...
96 def getPermissions(self): ...
97 def exists(self): ...
98 def isdir(self): ...
99 def isfile(self): ...
100 def isBlockDevice(self): ...
101 def isSocket(self): ...
102 def islink(self): ...
103 def isabs(self): ...
104 def listdir(self): ...
105 def splitext(self): ...
106 def touch(self) -> None: ...
107 def remove(self) -> None: ...
108 def makedirs(self, ignoreExistingDirectory: bool = ...): ...
109 def globChildren(self, pattern: Any): ...
110 def basename(self): ...
111 def dirname(self): ...
112 def parent(self): ...
113 def setContent(self, content: Any, ext: bytes = ...) -> None: ...
114 def __cmp__(self, other: Any): ...
115 def createDirectory(self) -> None: ...
116 def requireCreate(self, val: int = ...) -> None: ...
117 def create(self): ...
118 def temporarySibling(self, extension: bytes = ...): ...
119 def copyTo(self, destination: Any, followLinks: bool = ...) -> None: ...
120 def moveTo(self, destination: Any, followLinks: bool = ...) -> None: ...
121 def statinfo(self, value: Any = ...): ...