Is it possible (and how) to copy a file on a remote machine to a different place on the same remote machine using FTP?
|
Do you specifically need to make a copy of the file, so that a full copy of it exists in each of two paths, as opposed to just moving/renaming a single instance of the file? If so, the FTP protocol does allow it, in a couple of different ways:
|
|||
|
|
|
I suspect it would depend on the ftp server, but you can accomplish a move with the ftp |
|||
|
|
Why do you want to use FTP instead of the OS Anyway, with FTP the name is giveaway: "transfer" and "protocol" should tell you that it's for transferring files across a network, and will have limited capability to interact with the filesystem. FTP isn't a general purpose filesystem tool. |
|||
|
|
|
You can rename file using Most FTP servers does support renaming '/folder/file' to '/another/folder/another-file' as long as target directory does exists. |
|||
|
|