I've created a Python script that copies a file from an FTP ServerA to another FTP ServerB when a certain condition happens.
Right now the copy works in this way:
ServerA -> tmp (temporary folder in the script) -> ServerB
I want to upgrade the script and remove the tmp folder so I want to have a directly copy from ServerA to ServerB.
I saw that this process can be done using FXP protocol but I cannot find a good guide or documentation about using it with Python (the only thing that I found is this one: https://ftpext.readthedocs.io/en/latest/index.html).
Can anyone help me figuring out better how does it work? Or, of course, of there is a better way to do it. The goal is don't need a temporary staging area.