Example #1
0
        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);
        }
Example #2
0
        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);
        }