![]() |
501 Server cannot accept argument - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: 501 Server cannot accept argument (/thread-41934.html) |
501 Server cannot accept argument - anna17 - Apr-11-2024 Hello Please Help me import sys from ftpext.ftpext import FTPExt source = FTPExt("100.20.75.35", **21**, "user1", "abc", False, False, 0) target = FTPExt("200.12.62.15", **21**, "user2", "def", False, False, 0) # upload(copy) "/test/test1.txt" to "/test" source.fxp_to("/test/test1.txt", target, "/test", 'I') ========== error Traceback (most recent call last): File “c:\Users\abc\source\repos\import2.py”, line 8, in source.fxp_to(“/test/test1.txt”, target, “/test”, ‘I’) File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\site-packages\ftpext\ftpext.py”, line 244, in fxp_to ![]() File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\ftplib.py”, line 296, in sendport return self.voidcmd(cmd) ^^^^^^^^^^^^^^^^^ File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\ftplib.py”, line 286, in voidcmd return self.voidresp() ^^^^^^^^^^^^^^^ File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\ftplib.py”, line 259, in voidresp resp = self.getresp() ^^^^^^^^^^^^^^ File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\site-packages\ftpext\ftpext.py”, line 123, in getresp raise ftplib.error_perm(resp) ftplib.error_perm: 501 Server cannot accept argument. |