I
FTP_HOST = "ruby.zzz.com.ua"
FTP_USER = ""
FTP_PASS = ""
# connect to the FTP server
ftp = ftplib.FTP(FTP_HOST, FTP_USER, FTP_PASS)
# force UTF-8 encoding
ftp.encoding = "utf-8"
# local file name you want to upload
filename = "D:/python/programs/info.txt"
print(ftp.dir())
with open(filename, "rb") as file:
# use FTP's STOR command to upload the file
ftp.storbinary(f"STOR {filename}", file)`
Кто может сказать почему выбивает ошыбка ftplib.error_perm: 553 Can't open that file: No such file or directory , хотя файл info.txt у той же папке что и скрипт пайтон