summaryrefslogtreecommitdiff
path: root/uio.py
diff options
context:
space:
mode:
Diffstat (limited to 'uio.py')
-rw-r--r--uio.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/uio.py b/uio.py
index 30e05cd..f0d9423 100644
--- a/uio.py
+++ b/uio.py
@@ -37,6 +37,10 @@ class FileSystem:
def set_type(self, type):
if type == 'profile':
self.environment = './.uprofile/'
+ def create_dir(self, target):
+ """Recursively creates directories"""
+ if not os.path.exists(target):
+ os.makedirs(target)
def prepare_environment(self):
if not os.path.exists(self.environment):