Skip to content

Commit

Permalink
Adjusted Syntax for MultiDirectorysupport
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCryptoT committed Mar 4, 2020
1 parent 0bbd11d commit 6addf65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Module1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Module Module1
Dim Listofallfilesindirectory As New ArrayList
'get a list of all files in directory and sub dirs
'then check if any of them matches the given regex, if so, start the file an store new path in Array
If directorystr.ToString.Contains("&&") Then
Dim temparray = StringtoArray(directorystr, "&&")
If directorystr.ToString.Contains("\\") Then
Dim temparray = StringtoArray(directorystr, "\\")
For Each dirstring In temparray
Dim tempresultarray As New ArrayList
tempresultarray = GetFileList(Environment.ExpandEnvironmentVariables(dirstring), True)
Expand All @@ -46,7 +46,7 @@ Module Module1
Next

Next
Else
Else
Listofallfilesindirectory = GetFileList(Environment.ExpandEnvironmentVariables(directorystr), True)
End If
'compare regex
Expand Down

0 comments on commit 6addf65

Please sign in to comment.