Add Path.makedirs.

This commit is contained in:
Ethan Dalool 2020-09-24 14:16:51 -07:00
parent 96a6e62c14
commit a05d34ea9e

View file

@ -193,6 +193,9 @@ class Path:
children = [self.with_child(child) for child in children]
return children
def makedirs(self, mode=0o777, exist_ok=False):
return os.makedirs(self.absolute_path, mode=mode, exist_ok=exist_ok)
@property
def normcase(self):
norm = os.path.normcase(self.absolute_path)