From 94960952b9ad7766c525d6ccbb2b9ad1bcf86017 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 18 Jan 2021 13:36:19 -0600 Subject: [PATCH] Attempted to fix the ftp upload script --- scripts/upload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upload.py b/scripts/upload.py index 0adef07..0b1c2e9 100644 --- a/scripts/upload.py +++ b/scripts/upload.py @@ -52,12 +52,12 @@ version = version.replace("v", "") print("Uploading files to the Socializer server...") print("Connecting to %s" % (ftp_server,)) -connection = MyFTP_TLS(ftp_server) +connection = ftplib.FTP(ftp_server) print("Connected to FTP server {}".format(ftp_server,)) connection.login(user=ftp_username, passwd=ftp_password) -connection.prot_p() +#connection.prot_p() print("Logged in successfully") -connection.cwd("socializer.su/static/files/") +connection.cwd("socializer") if version not in connection.nlst(): print("Creating version directory {} because does not exists...".format(version,)) connection.mkd(version)