Currently LFTP returns code 256 if you try to remove a directory that
does not exists. I think it should return 0 (no error) in this case.
Returning an error code means that task failed but the directory does
not exist anymore so is nothing to delete.

rm: Access failed: 550 /path: No such file or folder.
2010-02-20 05:11:09,593 ERROR    lftp returned 256

This behavior prevents the usage of LFTP in automation tasks because
it does report an error when in fact it is no error. In addition code
256 is return for all kinds of errors so there is no way of knowing
that the job really failed or not (in this case if the directory is
still on the server or not).

Thanks,
--
/sorin
http://blog.i18n.ro

Reply via email to