FTP: Renaming Files Doesn't Work, Possibly Due to Extra / In Commands RNFR and RNTO
Hi! I think that I may have found a bug with the
Version of WinSCP: Version 6.1.2 (Build 13797 2023-09-19)
Version of Microsoft Windows: Windows 10 Pro, 21H1, 19043.2364, Windows Feature Experience Pack 120.2212.4190.0
Transfer protocol: FTP
GUI: Commander style
Error message: Syntax error in parameters or arguments
Precise steps:
Log:
For a file in the remote root directory:
For a file in a remote folder:
I believe that the error occurs because of the / char at the beginning of the
Adding a
I didn't see if there's an option somewhere to remove the
And happy new year!
Tygre
RNFR
and RNTO
FTP commands, please see below.
Version of WinSCP: Version 6.1.2 (Build 13797 2023-09-19)
Version of Microsoft Windows: Windows 10 Pro, 21H1, 19043.2364, Windows Feature Experience Pack 120.2212.4190.0
Transfer protocol: FTP
GUI: Commander style
Error message: Syntax error in parameters or arguments
Precise steps:
- Connect to a FTP server
- Select a file (at the root or in a folder, same behaviour)
- Press
F2
to rename this file
- Change the file name to a new, non-existing name
- Press
Return
Log:
For a file in the remote root directory:
. 2024-01-02 15:26:20.439 Renaming file "Test.txt" to "Test2.txt". > 2024-01-02 15:26:20.439 RNFR /Test.txt < 2024-01-02 15:26:20.456 350 Requested file action pending further information > 2024-01-02 15:26:20.456 RNTO /Test2.txt < 2024-01-02 15:26:20.477 501 Syntax error in parameters or arguments
. 2024-01-02 15:28:36.074 Renaming file "Test.txt" to "Test2.txt". > 2024-01-02 15:28:36.074 RNFR /Folder/Test.txt < 2024-01-02 15:28:36.092 350 Requested file action pending further information > 2024-01-02 15:28:36.092 RNTO /Folder/Test2.txt < 2024-01-02 15:28:36.113 501 Syntax error in parameters or arguments
RNFR
and RNTO
commands. When trying with CURL, I can rename files with the following commands:
curl -v -Q "RNFR Test.txt" -Q "RNTO Test2.txt" ftp://192.168.0.12/Test2.txt curl -v -Q "RNFR Folder/Test.txt" -Q "RNTO Folder/Test2.txt" ftp://192.168.0.12/Test2.txt
/
char at the beginning of the FTP commands results in an error:
curl -v -Q "RNFR /Test.txt" -Q "RNTO /Test2.txt" ftp://192.168.0.12/Test2.txt > RNFR /Test.txt * ftp_perform ends with SECONDARY: 0 < 350 Requested file action pending further information > RNTO /Test2.txt < 501 Syntax error in parameters or arguments
/
char from the GIU?
And happy new year!
Tygre