Fixed folder size calculations when using sub-folders and wildcards
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user