Fixed folder size calculations when using sub-folders and wildcards

This commit is contained in:
MikeMaximus
2018-10-12 09:35:50 -06:00
parent ffe34d29e7
commit c7565f5487
+2 -2
View File
@@ -332,13 +332,13 @@ Public Class mgrCommon
'Files 'Files
For Each fi As FileInfo In oFolder.EnumerateFiles() For Each fi As FileInfo In oFolder.EnumerateFiles()
If sInclude.Length > 0 Then If sInclude.Length > 0 Then
bInclude = CompareValueToArrayRegEx(fi.Name, sInclude) Or CompareValueToArrayRegEx(fi.DirectoryName, sInclude) bInclude = CompareValueToArrayRegEx(fi.FullName, sInclude)
Else Else
bInclude = True bInclude = True
End If End If
If sExclude.Length > 0 Then If sExclude.Length > 0 Then
bExclude = CompareValueToArrayRegEx(fi.Name, sExclude) Or CompareValueToArrayRegEx(fi.DirectoryName, sExclude) bExclude = CompareValueToArrayRegEx(fi.FullName, sExclude)
Else Else
bExclude = False bExclude = False
End If End If