I want to upload an entire folder keeping the same structure (folder, subfolders..) to a remote server. It´s necessary to iterate all folder or is possible to get the folder and upload to the server ?
I can upload single files but I think that the strategy with the folders maybe (sure) is different.
Any suggestion?
Thanks
EDIT: Is a remote server
I’m not sure this is what you are looking for, but sometimes it might be easier to upload the zipped folder (with low compression level) and unpack it on the server, if you can manage this on a client side. If it is applicable for you you might use free .net zip library like the SharpZipLib, so you don’t have to write the zipping routine by yourself.
Here is also the class for zipping/unzipping folders using thr SharZipLib: