is there a way to just download the entire folder from the ftp site, instead of having to traverse the directories, to get to the files, and recreate the directory structure on a local machine?. I am connecting to an ftp server, and using the listfoldercontents method to get the list of folders i want to download. The folder can contain multiple subdirectories, and the structure can vary. I want to download the root folder, and have all the subdirectories and files with it get downloaded as well.
Example:
/root folder on ftp site
/test folder within the root
The test folder contains multiple subdirectories, and file.
I tried just using the receivefile method, along with the folder name but that doesnt work. Any help would be appreciated.