FTP_RENAME

Discussions related to FTPAPI (An FTP client package for RPG programming.) http://www.scottklement.com/ftpapi/
Post Reply
basim
Posts: 9
Joined: Tue Oct 07, 2025 7:33 pm

FTP_RENAME

Post by basim »

Dear All,
I faced the following issue.
After run FTP_RENAME i got 501 Error Number during RNTO sequence.
Here the joblog , can someone help ?

Thanks
Basilio

0: > CWD /
0: 250 CWD command successful
0: > RNFR te20251010
0: 350 File or directory exists, ready for destination name
0: > RNTO te20251010a
0: 501 Bad sequence of commands
0: > QUIT
0: 221 Goodbye
Scott Klement
Site Admin
Posts: 935
Joined: Sun Jul 04, 2021 5:12 am

Re: FTP_RENAME

Post by Scott Klement »

Don't put too much stock in the "Bad sequence of commands" message. For some reason, this server doesn't like the RNTO you sent. It could be a problem with the name of the file, for example. Check on the server to see what is going wrong.
Post Reply