If I do not select the option Clean remote, the step works as expected.
It looks to me as if MLSD may not be supported and the plugin continues to use it anyway. I found the issue Client uses LIST output rather than using MLSD command, and there is a comment that says that the plugin would use LIST if MLSD is not supported, but that doesn't seem to work. However, that is just an assumption.
Jenkins and plugins versions report
Environment
```text Paste the output here ```What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins runs on Ubuntu 20.04, the FTP server is macOS Server.app, but I've seen that happen with other FTP servers as well.
Reproduction steps
Expected Results
I expect that existing files and directories in the target path are deleted, then the matching files are uploaded.
Actual Results
The log shows almost endlessly repeating MLSD attempts (I guess)
Eventually the step fails
Anything else?
If I do not select the option Clean remote, the step works as expected.
It looks to me as if MLSD may not be supported and the plugin continues to use it anyway. I found the issue Client uses LIST output rather than using MLSD command, and there is a comment that says that the plugin would use
LIST
ifMLSD
is not supported, but that doesn't seem to work. However, that is just an assumption.