clean up files properly

This commit is contained in:
Jonathan Jenne
2022-02-16 16:02:59 +01:00
parent d036ad00c2
commit 09f1684d81
2 changed files with 15 additions and 13 deletions

View File

@@ -42,6 +42,19 @@ Public Class ClassFileHandler
End Try
End Function
Public Sub Clear_Tempfiles()
For Each oFile In TempFiles
Try
System.IO.File.Delete(oFile)
Catch ex As Exception
Logger.Error(ex)
End Try
Next
TempFiles.Clear()
End Sub
Public Function Decide_FileHandle(pFilepath As String, pHandletype As String) As Boolean
Try
''TODO: Before doing anything, clean the filename