mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
GH-127381: pathlib ABCs: remove WritablePath.mkdir()
arguments (#130611)
Remove the *mode*, *parents* and *exist_ok* arguments from `WritablePath.mkdir()`. These arguments imply support for POSIX permissions and checking for preexistence of the path or its parents, but subclasses of `WritablePath` may not have these capabilities. The public `Path.mkdir()` method retains these arguments.
This commit is contained in:
parent
a55dffd66d
commit
c9932a9ec8
2 changed files with 4 additions and 10 deletions
|
@ -352,7 +352,7 @@ class WritablePath(JoinablePath):
|
|||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
||||
def mkdir(self):
|
||||
"""
|
||||
Create a new directory at this given path.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue