As stated in the title, I would like to move a directory on a FTP Server to some other path on the same server. I want to accomplish this using Net::FTP
but other solutions are also welcome.
Since there's no proper method for moving files or directories in Net::FTP Documentation, a solution involving copying the directory to another path and deleting the original would be preferable.
Please stay on topic and leave solutions related to the question.
Well, I found the solution and it's quite simple. Files (& Directories) can be moved using the
rename()
method of theNet::FTP
Class. Example:And that's it! This causes all files to move from one path to another on the same FTP Server.