diff --git a/exp/kerokero/ftp.py b/exp/kerokero/ftp.py --- a/exp/kerokero/ftp.py +++ b/exp/kerokero/ftp.py @@ -9,7 +9,7 @@ with open(os.path.join(thisDir,"ftp.json def push(path): - ftp=ftplib.FTP() + ftp=ftplib.FTP_TLS() ftp.connect(cfg["host"],cfg["port"]) ftp.login(cfg["user"],cfg["password"]) @@ -20,3 +20,7 @@ def push(path): ftp.storbinary("STOR "+filename,f) ftp.close() + + +if __name__=="__main__": + push(os.path.join(thisDir,"ftp.py"))