public static void CreateDirectory(String path) { if (path == null) { throw new ArgumentNullException("path"); } if (path.Length == 0) { throw new ArgumentException("Argument_PathEmpty"); } String fullPath = NameFix.AddLongPathPrefix(path); Win32Native.CreateDirectory(fullPath, IntPtr.Zero); }
public static void CreateDirectory(String path) { if (Program.rvSettings.IsUnix) { System.IO.Directory.CreateDirectory(path); return; } if (path == null) { throw new ArgumentNullException("path"); } if (path.Length == 0) { throw new ArgumentException("Argument_PathEmpty"); } String fullPath = NameFix.AddLongPathPrefix(path); Win32Native.CreateDirectory(fullPath, IntPtr.Zero); }