From 6e9c36a503f38210e1bbaffab3fa7b0d12d05449 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 12 Jan 2014 20:31:59 +0100 Subject: [PATCH] Lowercase compare --- couchpotato/core/helpers/variable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/helpers/variable.py b/couchpotato/core/helpers/variable.py index 0b1ca9d..6ffabb9 100644 --- a/couchpotato/core/helpers/variable.py +++ b/couchpotato/core/helpers/variable.py @@ -222,4 +222,4 @@ def dictIsSubset(a, b): def isSubFolder(sub_folder, base_folder): # Returns True is sub_folder is the same as or in base_folder - return base_folder.rstrip(os.path.sep) + os.path.sep in sub_folder.rstrip(os.path.sep) + os.path.sep + return base_folder.lower().rstrip(os.path.sep) + os.path.sep in sub_folder.lower().rstrip(os.path.sep) + os.path.sep