Reputation: 23
How to move all files in a folder at a ftp server to another folder in the same ftp server.
Thanks in Advance..
Upvotes: 2
Views: 6950
Reputation: 1295
You can use the raw ftp commands rnfr and rnto. rnfr chooses the file to rename from. After receiving a confirmation you can use rnto to store it under a different filename. this works also with directories. You will have to be at a parent directory in order to that that and create to directory to move to as well, for example:
to move /rootFolder/1 to /rootFolder/2 :
CWD /rootFolder
MKD 2
RNFR 1
RNTO 2
Upvotes: 1