mirror of
https://github.com/rclone/rclone
synced 2025-02-24 18:35:51 +01:00

Before this change `rclone deletefile` would return error code 1 if the file it was trying to delete does not exist. Rclone can't actually tell at this point whether the file doesn't exist or what you tried to delete is a directory, but it seems more logical to return error code 4 "object not found" here. See: https://forum.rclone.org/t/rclone-deletefile-cmd-return-exit-code-1-when-file-not-found-in-remote-why-1-and-not-exit-code-4/