X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=file_utils.py;h=176b0dab055f1447ad8ac5a0d67ce073be7deb7c;hb=3ff520c22a4fcba0590400a20f822ad096927f6b;hp=7270e30b1fe1513746aaf986e87269968787e842;hpb=709370b2198e09f1dbe195fe8813602a3125b7f6;p=python_utils.git diff --git a/file_utils.py b/file_utils.py index 7270e30..176b0da 100644 --- 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