check if directory exists on ce device using RAPI

Nov 14, 2014 at 9:56 AM
I use the code to copy local file to ce device which works as long as the folder path exists on ce device.

I can't find a code specific to rapi to check if a folder path exists on ce device and If not create it before attempting to copy file.

How can this be done?
Nov 14, 2014 at 9:32 PM
I just looked up some old VB.Net code that I had on a thumbdrive

If Directory.Exists( YourPathHere )= false then Directory.CreateDirectory( YourPathHere )