CURLS FTP DELE = Error 23

Using the following code, i get “Fehlercode: 23 Fehler: Failed writing body (0 != 2324)” errors. But the same credentials and path settings working fine for uploads.

[code] dim e as integer
dim d as new CURLSMBS

d.OptionUsername = FTPLoginID
d.OptionPassword = FTPPassword
d.OptionURL=“ftp://192.168.98.31
d.OptionFTPListOnly = true
dim ws() As String
ws.Append “DELE " + FTPCurrentPath.Replace(”/","") + “/” + FileName
d.SetOptionPostQuote(ws)

// run
e=d.Perform

If e= 0 Then
DB_WAG4_AddToMainlog(“FTP”, “Datei " + FileName + " von Nutzer " + Nutzernummer + " wurde entfernt”)
GetNutzerdateien()
Else
MsgBox "Fehlercode: " + Str(e) + EndOfLine + "Fehler: " + d.LasterrorMessage
End If[/code]

I’ve tried different variations of the FTPCurrentPath variable, but the error code 23 stays while the number after != changes in the error message.

Replaced

d.OptionFTPListOnly = true

with

d.OptionVerbose = true d.OptionFTPListOnly = true d.CollectDebugData = true d.CollectOutputData = true

and now it works fine.

Yes, if you have CollectOutputData = false and no code implemented for Write event to accept data, the file listing can’t go anywhere.
So you get an error.

Thank you for the explanation Chris.
I am about to replace the FTPSuite Plugin and replace it with CURL, because it’s so much easier to use.