When using / as REMOTE_PATH I am seeing this error:
lftp -u user,pw -e 'set ssl:verify-certificate false; mirror --delete-first -vvv -R /opt/atlassian/pipelines/agent/build/dist/ /;quit' server_name mirror: Access failed: 550 Directory Not Found (/)
Whats also confusing is that the deployment will be shown up as successfull even though the upload clearly failed!