Add Path.makedirs.
This commit is contained in:
parent
96a6e62c14
commit
a05d34ea9e
1 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,9 @@ class Path:
|
||||||
children = [self.with_child(child) for child in children]
|
children = [self.with_child(child) for child in children]
|
||||||
return children
|
return children
|
||||||
|
|
||||||
|
def makedirs(self, mode=0o777, exist_ok=False):
|
||||||
|
return os.makedirs(self.absolute_path, mode=mode, exist_ok=exist_ok)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def normcase(self):
|
def normcase(self):
|
||||||
norm = os.path.normcase(self.absolute_path)
|
norm = os.path.normcase(self.absolute_path)
|
||||||
|
|
Loading…
Reference in a new issue