diff options
Diffstat (limited to 'devbot/utils.py')
-rw-r--r-- | devbot/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/devbot/utils.py b/devbot/utils.py index aed5de0..a8988f1 100644 --- a/devbot/utils.py +++ b/devbot/utils.py @@ -1 +1,9 @@ +import os + devnull = open("/dev/null", "w") + +def ensure_dir(path): + try: + os.mkdir(path) + except OSError: + pass |