What is the FTP command to transfer a directory?
There is no FTP command that would transfer a directory or folder for you. The best you can do with a command line FTP interface is to use a command like this to create the directory on the remote server that you are connecting to:
mkdir someDirectory
And then you could just transfer all the files under the directory that you want to replicate with a simple command like this:
mput *
A better solution to transferring directories
Although the FTP command line interface doesn’t allow you to transfer directories, you could simply download one of the free FTP solutions like Filezilla, which allow you to transfer entire directories through a simple graphical interface. So, all you would have to do is connect to the FTP server and then drag and drop any directories or folders that you would like to transfer either to or from your desktop.