Dear all,
I want to download from a FTP server the files from a folder, including all subfolders on it, but syncfile function does not have a parameter for that (like recursive of dirlist function). I can not do a syncfile function calls for each subfolder because I do not know before hand the subfolders names to download. Someone has a idea how to do it?
Kind regards
Harry
Syncfile with subfolders
-
- Posts: 1792
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Syncfile with subfolders
Using current CSPro functionality, there is no way to get a server's directory listing.
Could you restructure your program so that all files go in the same directory? With the proper file naming scheme, you could use syncfile with a universe to restrict what files are downloaded at any particular point.
Could you restructure your program so that all files go in the same directory? With the proper file naming scheme, you could use syncfile with a universe to restrict what files are downloaded at any particular point.
Re: Syncfile with subfolders
Thanks Gregory for your answer.
I thing the solution is to put in the server a zip file with all the files and subfolders inside.
Cheers,
Harry
I thing the solution is to put in the server a zip file with all the files and subfolders inside.
Cheers,
Harry