Thanks for the information.
- martin
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Test.txt
file from one directory to another. Because moving uses RNTO
and RNFR
, it fails with my FTP server. Looking at the log, it seems to me that the bug is indeed with the server: commands that take a pathname, like CWD
, SIZE
, or MDTM
, work fine with a pathname of the form "/xxx"
except for RNTO
and RNFR
.
curl
show that the server works as you'd expect except for RNTO
and RNFR
:-( Unless we could have an option to have relative pathnames (relative to CWD
) rather than absolute pathnames, hence without prefix /
, I'll have bypass this bug in this FTP server using curl
.
RNFR
and RNTO
FTP commands, please see below.
F2
to rename this file
Return
. 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?