clean up files properly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user