[DllImport("kernel32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool CreateDirectory(string lpPathName,
IntPtr lpSecurityAttributes);
None.
Advantage - Doesn't require the running assembly to have permissions to the entire folder path.
Disadvantage - Only creates the end-most directory, not the full path.
Please add some!
string path = "c:\\test\\newDir";
CreateDirectory(path, IntPtr.Zero);