windream
This commit is contained in:
@@ -197,7 +197,7 @@ Public Class Windream2
|
||||
If TestSessionLoggedIn() = False Then
|
||||
Return Nothing
|
||||
End If
|
||||
|
||||
Path = GetNormalizedPath(Path)
|
||||
Dim oWMObject As WMObject
|
||||
|
||||
Try
|
||||
@@ -951,13 +951,14 @@ Public Class Windream2
|
||||
End If
|
||||
|
||||
Try
|
||||
Dim oWMObject As WMObject = Session.GetWMObjectByName(WMEntityAttribute, Path)
|
||||
Dim oWMObject As WMObject = GetFileByPath(Path)
|
||||
|
||||
If oWMObject Is Nothing Then
|
||||
Return False
|
||||
End If
|
||||
|
||||
oWMObject.Delete()
|
||||
_logger.Warn($"file {Path} has been deleted!")
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
_logger.Error(ex)
|
||||
|
||||
Reference in New Issue
Block a user