title: Directory.CreateDirectory access to path is denied?
body: <p><img src="https://i.stack.imgur.com/N1IUX.png" alt="enter image description here"></p>
  
  <p>I have server-client application, it's a file manager<br>
  my problem is when I go inside a folder which requires access control like system folders, it becomes to read-only, but I need to move/delete or create new folder, how can I get the permission to do that?</p>
  
  <p>here's how I create a new folder at the server side</p>
  
  <pre><code>public void NewFolder(string path)
      {
          try
          {
              string name = @"\New Folder";
              string current = name;
              int i = 0;
              while (Directory.Exists(path + current))
              {
                  i++;
                  current = String.Format("{0} {1}", name, i);
              }
              Directory.CreateDirectory(path + current);
              Explore(path); //this line is to refresh the items in the client side after creating the new folder
          }
          catch (Exception e)
          {
              sendInfo(e.Message, "error");
          }
      }
  </code></pre>