X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=file_utils.py;h=67e6f561f394e1a99c4ace7bb2f6ddbe733ea011;hb=eb9e6df32ed696158bf34dba6464277b648f5c74;hp=7270e30b1fe1513746aaf986e87269968787e842;hpb=05a26ae305adfc47f38b8534ec8f35640df3955e;p=python_utils.git diff --git a/file_utils.py b/file_utils.py index 7270e30..67e6f56 100644 --- 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