Cannnot remove remote file
Hello,
I am using WinScp net for long time. Now i am developing on new machine and created testing ftp. However for unknow reason this time i cannot remofe file from remote location. Don't know why. There is no error message, but when using RemoveFile method IsSuccess is false
I can download files from this ftp, check whether they exist but if it comes to removeFile method i get false for IsSuccess without any error. What could be a problem here? As i said on diffrent machine this works as well. How to investiaget that?
I am using WinScp net for long time. Now i am developing on new machine and created testing ftp. However for unknow reason this time i cannot remofe file from remote location. Don't know why. There is no error message, but when using RemoveFile method IsSuccess is false
I can download files from this ftp, check whether they exist but if it comes to removeFile method i get false for IsSuccess without any error. What could be a problem here? As i said on diffrent machine this works as well. How to investiaget that?
Function FileExist(path As String) As Boolean Dim result As Boolean If session IsNot Nothing Then result = session.FileExists(path) Else result = False End If Return result End Function If FileExist(path) Then Dim removalResult As RemovalOperationResult = session.RemoveFiles(path) If removalResult.IsSuccess = False Then result = False End If End If