Skip to content

Commit

Permalink
Log performance of clearing files by extension
Browse files Browse the repository at this point in the history
  • Loading branch information
joyfullservice committed Dec 1, 2023
1 parent a767252 commit b70b8cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Version Control.accda.src/modules/modFileAccess.bas
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ Public Sub ClearFilesByExtension(ByVal strFolder As String, strExt As String)
Dim strFolderNoSlash As String

' While the Dir() function would be simpler, it does not support Unicode.
Perf.OperationStart "Clear Files by Ext"
strFolderNoSlash = StripSlash(strFolder)
If FSO.FolderExists(strFolderNoSlash) Then
For Each oFile In FSO.GetFolder(strFolderNoSlash).Files
Expand All @@ -293,6 +294,7 @@ Public Sub ClearFilesByExtension(ByVal strFolder As String, strExt As String)
End If
Next
End If
Perf.OperationEnd

End Sub

Expand Down

0 comments on commit b70b8cd

Please sign in to comment.