From 25e973ff7986616567200ab8dfa61032a1d8c9e1 Mon Sep 17 00:00:00 2001 From: Eugen Ciur Date: Thu, 24 Dec 2020 12:00:47 +0100 Subject: [PATCH] minor fix --- mglib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mglib/utils.py b/mglib/utils.py index 763095c..dbde387 100644 --- a/mglib/utils.py +++ b/mglib/utils.py @@ -43,7 +43,7 @@ def safe_to_delete(place): for root, dirs, files in os.walk(place): for name in files: base, ext = os.path.splitext(name) - if ext not in SAFE_EXTENSIONS: + if ext.lower() not in SAFE_EXTENSIONS: logger.warning( f"Trying to delete unsefe location: " f"extention={ext} not found in {SAFE_EXTENSIONS}"