projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't let chromecasts steal the thread for too long.
[python_utils.git]
/
file_utils.py
diff --git
a/file_utils.py
b/file_utils.py
index 7270e30b1fe1513746aaf986e87269968787e842..176b0dab055f1447ad8ac5a0d67ce073be7deb7c 100644
(file)
--- a/
file_utils.py
+++ b/
file_utils.py
@@
-19,6
+19,10
@@
from uuid import uuid4
logger = logging.getLogger(__name__)
+# os.remove(file) you fuckwit.
+# os.path.basename too.
+
+
def create_path_if_not_exist(path, on_error=None):
"""
Attempts to create path if it does not exist. If on_error is