Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'devbot/utils.py')
-rw-r--r--devbot/utils.py8
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