Does FTP support a COPY or MOVE command?

I am writing an app that can upload/download/delete files and folders to/from an FTP server using CURLSMBS and it’s working well. But now I want to Archive some files on the FTP server into a subfolder on the FTP server.

I could download the files then upload them into a different folder, but it would be faster if I could ask the FTP server to COPY or MOVE the files instead. Is this possible in FTP?

You might be able to perform a move via the RENAME command.

I don’t think there is an official command to perform a copy.

This is FTP, not SFTP?

With FTP you pass in two commands with OptionQuote: “RNFR foo.txt”; “RNTO bar.txt”.

For the record, I think the correct command is:

CURLSMBS.SetOptionQuote(list() as string)