Gday .net gurus

Can I please get some recommendations on how to check if a directory can be
created given a path if it already doesnt exist?
As an example something like this

public static bool CanCreateDir(string path) {
if (System.IO.Directory.Exists(path)) {
 return true;
}

//TODO - figure out if the directory can be created
}

Cheers,
Tom

Reply via email to