MS Envelope Common DeleteFromDisk
This commit is contained in:
@@ -135,7 +135,10 @@ Public MustInherit Class BaseController
|
||||
|
||||
Public Function DeleteDocumentFromDisk(pDocument As EnvelopeDocument) As Boolean
|
||||
Try
|
||||
IO.File.Delete(pDocument.Filepath)
|
||||
If IO.File.Exists(pDocument.Filepath) Then
|
||||
IO.File.Delete(pDocument.Filepath)
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
Logger.Error(ex)
|
||||
|
||||
Reference in New Issue
Block a user