Async OpenWrite and Cannot Find Path Specified

Aug 26, 2014 at 4:01 AM
Hi. Great library! Thanks for putting it together. I am using it in a Windows service to upload files from one server to another (Microsoft FTP Service). I am using BeginOpenWrite and it works perfectly if the folder for the file exists on the destination server. The problem is that this will not always be the case. Do you have any suggestions as to how to check that the folder structure exists and create it, if necessary, in the context of an async call? Is there a way to do that using the current library or should I add an overload to BeginOpenWrite with a "force" parameter to check the folder structure first?


David Perry