diff options
Diffstat (limited to 'combox/file.py')
-rw-r--r-- | combox/file.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/combox/file.py b/combox/file.py index 43ce5af..3990166 100644 --- a/combox/file.py +++ b/combox/file.py @@ -110,6 +110,14 @@ def mk_nodedir(directory, config): print e, "Something wrong. report bug to sravik@bgsu.edu" +def mk_dir(directory): + """Creates directory""" + try: + os.mkdir(directory) + except OSError, e: + print e, "Something wrong. report bug to sravik@bgsu.edu" + + def rm_nodedir(directory, config): """ Removes directory `directory' inside the nodes. |