Improved manage scanning

Expire after db get
This commit is contained in:
Ruud committed 2014-01-24 22:33:22 +01:00
1 parent cbd8981ee2
commit 88c328af8e
15 files changed
+117 -85

No files matched your search

+1 -1
View File
@@ -278,4 +278,4 @@ def dictIsSubset(a, b):
def isSubFolder(sub_folder, base_folder):
# Returns True if sub_folder is the same as or inside base_folder
return base_folder and sub_folder and os.path.normpath(base_folder).rstrip(os.path.sep) + os.path.sep in os.path.normpath(sub_folder).rstrip(os.path.sep) + os.path.sep
return base_folder and sub_folder and ss(os.path.normpath(base_folder).rstrip(os.path.sep) + os.path.sep) in ss(os.path.normpath(sub_folder).rstrip(os.path.sep) + os.path.sep)