curl / Mailing Lists / curl-library / Single Mail


FTP Quote command one fails, entire operation aborted

From: Jan Östlund <>
Date: Sun, 23 Apr 2017 16:01:35 +0200

I have an app that batch deletes files from a remote FTP/SFTP server, it works well until a file does not exist on the remote server.

Today I discovered this in the docs, after lot of debugging my FTP-commands:

> If the server returns failure for one of the commands, the entire operation will be aborted. You must send syntactically correct FTP commands as RFC 959 defines to FTP servers, or one of the commands listed below to SFTP servers.

Is there no way around this or mute the error? Is this a technical limit?

Or do I have somehow check that all files does exist on the server before trying to delete them, is this the only way around this?

Thanks in advance!

/ Jan

Received on 2017-04-23