projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adds some doctests to decorators.
[python_utils.git]
/
file_utils.py
diff --git
a/file_utils.py
b/file_utils.py
index 7270e30b1fe1513746aaf986e87269968787e842..67e6f561f394e1a99c4ace7bb2f6ddbe733ea011 100644
(file)
--- a/
file_utils.py
+++ b/
file_utils.py
@@
-19,6
+19,9
@@
from uuid import uuid4
logger = logging.getLogger(__name__)
+# os.remove(file) you fuckwit.
+
+
def create_path_if_not_exist(path, on_error=None):
"""
Attempts to create path if it does not exist. If on_error is