title: java.nio.file Files.createDirectory on windows remote mount share
body: <p>I seem to not be able to let java create directories on Windows mount shares (like \myshare\directory\subdir).</p>
  
  <pre><code>import java.io.IOException;
  import java.nio.file.Files;
  import java.nio.file.Path;
  import java.nio.file.Paths;
  import java.util.logging.*;
  
  public class Main
  {
      public static void main(String arg[])
      {
          Path target = Paths.get("\\\\DISK\\Remote\\DirectoPO");
          try
          {
              Files.createDirectory(target);
          } catch (IOException ex)
          {
              Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
          }
      }
  }
  </code></pre>
  
  <p>I always get a </p>
  
  <pre><code>SEVERE: null
  java.nio.file.AccessDeniedException: \\DISK\Remote\DirectoPO
  </code></pre>
  
  <p>However I can access the share without any problem (I'm Administrator on my machine and Administrators can create directories on this mount share).
  Any help?</p>