thank for your project, I can download files , but I can not get file sizes, can your help me.
Traceback (most recent call last):
File "main.py", line 37, in
File "ftplib.py", line 635, in size
File "ftplib.py", line 292, in sendcmd
File "ftplib.py", line 262, in getresp
Error: 550 SIZE not allowed in ASCII mode.
thank for your project, I can download files , but I can not get file sizes, can your help me.
Traceback (most recent call last): File "main.py", line 37, in
File "ftplib.py", line 635, in size
File "ftplib.py", line 292, in sendcmd
File "ftplib.py", line 262, in getresp
Error: 550 SIZE not allowed in ASCII mode.
code:
from ftpadvanced import AdvancedFTP
PORT = 21 ftp = AdvancedFTP('192.168.2.232', PORT) ftp.login() files = ftp.nlst() print(files) print('sizes=', ftp.size('aaaaaa.dxf'))#error