From c7565f5487737f61f6554560873caa00361e7fd0 Mon Sep 17 00:00:00 2001 From: MikeMaximus Date: Fri, 12 Oct 2018 09:35:50 -0600 Subject: [PATCH] Fixed folder size calculations when using sub-folders and wildcards --- GBM/Managers/mgrCommon.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GBM/Managers/mgrCommon.vb b/GBM/Managers/mgrCommon.vb index e49592d..92246e9 100644 --- a/GBM/Managers/mgrCommon.vb +++ b/GBM/Managers/mgrCommon.vb @@ -332,13 +332,13 @@ Public Class mgrCommon 'Files For Each fi As FileInfo In oFolder.EnumerateFiles() If sInclude.Length > 0 Then - bInclude = CompareValueToArrayRegEx(fi.Name, sInclude) Or CompareValueToArrayRegEx(fi.DirectoryName, sInclude) + bInclude = CompareValueToArrayRegEx(fi.FullName, sInclude) Else bInclude = True End If If sExclude.Length > 0 Then - bExclude = CompareValueToArrayRegEx(fi.Name, sExclude) Or CompareValueToArrayRegEx(fi.DirectoryName, sExclude) + bExclude = CompareValueToArrayRegEx(fi.FullName, sExclude) Else bExclude = False End If