501 Server cannot accept argument

Advertisement

anna1
Guest

501 Server cannot accept argument

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) "FTP://100.20.75.35/test1/test1.txt"  to  "/test"
source.fxp_to("FTP://200.20.75.35/test1/test1.txt", target, "FTP://200.12.62.15/test", 'I')

===
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

target.sendport(host, host_port) <============= Error 501 Server cannot accept argument

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,552
Location:
Prague, Czechia

Re: 501 Server cannot accept argument

I do not see what does this question have to do with WinSCP.
You should better ask it elsewhere, maybe on https://stackoverflow.com/
I also do not understand your second post. Afaik, FileZilla does not support FXP at all.

Reply with quote

Advertisement

You can post new topics in this forum