I'm trying to write on hosted file from python, so I chose to use ftplib module. So far i got this code
from ftplib import FTP
import io
ftp = FTP('ftp.myhostname.com')
ftp.login('myusername','mypass')
#ftp.retrlines('LIST')
bio = io.BytesIO(b'randomtext')
ftp.storbinary('STOR test.php', bio)
#ftp.retrbinary('RETR /test.php', "test", wb)
input()
but it overwrites the previous text.
question from:https://stackoverflow.com/questions/65936149/write-on-ftp-file-without-overwrite-previous-text-ftplib-python