linux use ftp command line to transfer directory recursively code example
Example: linux download ftp get all files and folders
wget -r --user="yourUser" --password="yourPassword" ftp://server.com/ -m
wget -r --user="yourUser" --password="yourPassword" ftp://server.com/ -m